Class UniformIntrusiveEdgesSpecifics<V,E>
java.lang.Object
org.jgrapht.graph.BaseIntrusiveEdgesSpecifics<V, E, org.jgrapht.graph.IntrusiveEdge>
org.jgrapht.graph.UniformIntrusiveEdgesSpecifics<V,E>
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Implemented Interfaces:
Serializable, IntrusiveEdgesSpecifics<V,E>
public class UniformIntrusiveEdgesSpecifics<V,E>
extends BaseIntrusiveEdgesSpecifics<V, E, org.jgrapht.graph.IntrusiveEdge>
implements IntrusiveEdgesSpecifics<V,E>
An uniform weights variant of the intrusive edges specifics.
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.
- Author:
- Barak Naveh, Dimitrios Michail
- See Also:
-
Field Summary
Fields inherited from class BaseIntrusiveEdgesSpecifics
edgeMap, unmodifiableEdgeSet -
Constructor Summary
ConstructorsConstructorDescriptionUniformIntrusiveEdgesSpecifics(Map<E, org.jgrapht.graph.IntrusiveEdge> map) Constructor -
Method Summary
Methods inherited from class BaseIntrusiveEdgesSpecifics
addIntrusiveEdge, containsEdge, getEdgeSet, getEdgeSource, getEdgeTarget, getEdgeWeight, remove, setEdgeWeightMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IntrusiveEdgesSpecifics
containsEdge, getEdgeSet, getEdgeSource, getEdgeTarget, getEdgeWeight, remove, setEdgeWeight
-
Constructor Details
-
UniformIntrusiveEdgesSpecifics
-
-
Method Details
-
add
Description copied from class:BaseIntrusiveEdgesSpecificsAdd a new edge- Specified by:
addin interfaceIntrusiveEdgesSpecifics<V,E> - Specified by:
addin classBaseIntrusiveEdgesSpecifics<V, E, org.jgrapht.graph.IntrusiveEdge>- Parameters:
e- the edgesourceVertex- the source vertex of the edgetargetVertex- the target vertex of the edge- Returns:
- true if the edge was added, false if the edge was already present
-
getIntrusiveEdge
Description copied from class:BaseIntrusiveEdgesSpecificsGet the intrusive edge of an edge.- Specified by:
getIntrusiveEdgein classBaseIntrusiveEdgesSpecifics<V, E, org.jgrapht.graph.IntrusiveEdge>- Parameters:
e- the edge- Returns:
- the intrusive edge
-