|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.utils.ParallelEdgeIndexSingleton
public class ParallelEdgeIndexSingleton
A class which creates and maintains indices for parallel edges.
Parallel edges are defined here to be those edges of type 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.
Field Summary | |
---|---|
protected Map |
edge_index
|
Method Summary | |
---|---|
protected Integer |
getIndex_internal(Edge e,
Graph g)
|
int |
getIndex(Edge e)
Returns the index for the specified edge. |
static ParallelEdgeIndexFunction |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map edge_index
Method Detail |
---|
public static ParallelEdgeIndexFunction getInstance()
public int getIndex(Edge e)
e
and for all edges parallel
to e
.
getIndex
in interface ParallelEdgeIndexFunction
protected Integer getIndex_internal(Edge e, Graph g)
public void reset(Edge e)
e
has been added or removed.
e
- public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |