public class EdgeOffsetFunctionsImpl.SourceOffsetFunction extends java.lang.Object implements EdgeOffsetFunction<V,E>
Constructor and Description |
---|
SourceOffsetFunction() |
Modifier and Type | Method and Description |
---|---|
float |
getOffset(edu.uci.ics.jung.graph.Graph<V,E> graph,
E e) |
void |
reset()
Clears all edge indices for all edges in all graphs.
|
void |
reset(edu.uci.ics.jung.graph.Graph<V,E> g,
E edge)
Resets the indices for
edge and its parallel edges in graph . |
public float getOffset(edu.uci.ics.jung.graph.Graph<V,E> graph, E e)
getOffset
in interface EdgeOffsetFunction<V extends HasIndex,E>
public void reset(edu.uci.ics.jung.graph.Graph<V,E> g, E edge)
EdgeOffsetFunction
edge
and its parallel edges in graph
. Should be invoked when an edge parallel to edge
has
been added or removed.reset
in interface EdgeOffsetFunction<V extends HasIndex,E>
g
- the graph in which edge
's index is to be resetedge
- the edge whose index is to be resetpublic void reset()
EdgeOffsetFunction
reset
in interface EdgeOffsetFunction<V extends HasIndex,E>