Interface IntrusiveEdgesSpecifics<V,E>
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
UniformIntrusiveEdgesSpecifics, WeightedIntrusiveEdgesSpecifics
An interface for the set of intrusive edges of a graph.
Since the library supports edges which can be any user defined object, we need to provide explicit support for storing vertex source, target and weight.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a new edge.booleancontainsEdge(E e) Check if an edge existsGet the edge setgetEdgeSource(E e) Get the source vertex of an edge.getEdgeTarget(E e) Get the target vertex of an edge.doublegetEdgeWeight(E e) Get the weight of an edge.voidRemove an edge.voidsetEdgeWeight(E e, double weight) Set the edge weight
-
Method Details
-
getEdgeSource
-
getEdgeTarget
-
add
-
containsEdge
Check if an edge exists- Parameters:
e- the input edge- Returns:
- true if an edge exists, false otherwise
-
getEdgeSet
-
remove
-
getEdgeWeight
Get the weight of an edge.- Parameters:
e- the edge- Returns:
- the edge weight
-
setEdgeWeight
Set the edge weight- Parameters:
e- the edgeweight- the new weight
-