V
- the graph vertex typeE
- the graph edge typepublic class UniformIntrusiveEdgesSpecifics<V,E> extends BaseIntrusiveEdgesSpecifics<V,E,org.jgrapht.graph.IntrusiveEdge> implements IntrusiveEdgesSpecifics<V,E>
The implementation optimizes the use of DefaultEdge
and subclasses. For other custom user
edge types, a map is used to store vertex source and target.
edgeMap, unmodifiableEdgeSet
Constructor and Description |
---|
UniformIntrusiveEdgesSpecifics()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e,
V sourceVertex,
V targetVertex)
Add a new edge
|
protected org.jgrapht.graph.IntrusiveEdge |
getIntrusiveEdge(E e)
Get the intrusive edge of an edge.
|
containsEdge, getEdgeSet, getEdgeSource, getEdgeTarget, getEdgeWeight, remove, setEdgeWeight
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
containsEdge, getEdgeSet, getEdgeSource, getEdgeTarget, getEdgeWeight, remove, setEdgeWeight
public UniformIntrusiveEdgesSpecifics()
public boolean add(E e, V sourceVertex, V targetVertex)
BaseIntrusiveEdgesSpecifics
add
in interface IntrusiveEdgesSpecifics<V,E>
add
in class BaseIntrusiveEdgesSpecifics<V,E,org.jgrapht.graph.IntrusiveEdge>
e
- the edgesourceVertex
- the source vertex of the edgetargetVertex
- the target vertex of the edgeprotected org.jgrapht.graph.IntrusiveEdge getIntrusiveEdge(E e)
BaseIntrusiveEdgesSpecifics
getIntrusiveEdge
in class BaseIntrusiveEdgesSpecifics<V,E,org.jgrapht.graph.IntrusiveEdge>
e
- the edgeCopyright © 2018. All rights reserved.