Class BaseIntrusiveEdgesSpecifics<V, E, IE extends IntrusiveEdge>
java.lang.Object
org.jgrapht.graph.BaseIntrusiveEdgesSpecifics<V,E,IE>
- Type Parameters:
V- the graph vertex typeE- the graph edge typeIE- the intrusive edge type
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UniformIntrusiveEdgesSpecifics, WeightedIntrusiveEdgesSpecifics
public abstract class BaseIntrusiveEdgesSpecifics<V, E, IE extends IntrusiveEdge>
extends Object
implements Serializable
A base implementation for the intrusive edges specifics.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanAdd a new edgeprotected booleanaddIntrusiveEdge(E edge, V sourceVertex, V targetVertex, IE e) booleancontainsEdge(E e) Check if an edge existsGet the edge set.getEdgeSource(E e) Get the source of an edge.getEdgeTarget(E e) Get the target of an edge.doublegetEdgeWeight(E e) Get the weight of an edge.protected abstract IEGet the intrusive edge of an edge.voidRemove an edge.voidsetEdgeWeight(E e, double weight) Set the weight of an edge
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
edgeMap
-
unmodifiableEdgeSet
-
-
Constructor Details
-
BaseIntrusiveEdgesSpecifics
-
-
Method Details
-
containsEdge
Check if an edge exists- Parameters:
e- the edge- Returns:
- true if the edge exists, false otherwise
-
getEdgeSet
-
remove
-
getEdgeSource
-
getEdgeTarget
-
getEdgeWeight
Get the weight of an edge.- Parameters:
e- the edge- Returns:
- the weight of an edge
-
setEdgeWeight
Set the weight of an edge- Parameters:
e- the edgeweight- the new weight
-
add
-
addIntrusiveEdge
-
getIntrusiveEdge
-