public class DefaultParallelEdgeIndexFunction extends java.lang.Object implements ParallelEdgeIndexFunction
Edge
that are returned by v.findEdgeSet(w)
for some
v
and w
.
At this time, users are responsible for resetting the indices if changes to the graph make it appropriate.
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
edge_index |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Integer |
getIndex_internal(Edge e) |
int |
getIndex(Edge e)
Returns the index for the specified edge.
|
static DefaultParallelEdgeIndexFunction |
getInstance() |
void |
reset()
Clears all edge indices for all edges in all graphs.
|
void |
reset(Edge e)
Resets the indices for this edge and its parallel edges.
|
public static DefaultParallelEdgeIndexFunction getInstance()
public int getIndex(Edge e)
e
and for all edges parallel
to e
.getIndex
in interface ParallelEdgeIndexFunction
protected java.lang.Integer getIndex_internal(Edge e)
public void reset(Edge e)
e
has been added or removed.e
- public void reset()