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(Map<E,org.jgrapht.graph.IntrusiveEdge> map)
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, setEdgeWeightclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsEdge, getEdgeSet, getEdgeSource, getEdgeTarget, getEdgeWeight, remove, setEdgeWeightpublic boolean add(E e, V sourceVertex, V targetVertex)
BaseIntrusiveEdgesSpecificsadd 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)
BaseIntrusiveEdgesSpecificsgetIntrusiveEdge in class BaseIntrusiveEdgesSpecifics<V,E,org.jgrapht.graph.IntrusiveEdge>e - the edgeCopyright © 2019. All rights reserved.