V
- vertex typeE
- edge typepublic class EdgeOffsetFunctionsImpl<V extends HasIndex,E> extends java.lang.Object implements EdgeOffsetFunctions<V,E>
Modifier and Type | Class and Description |
---|---|
class |
EdgeOffsetFunctionsImpl.DestinationOffsetFunction
Destination end offset function
|
class |
EdgeOffsetFunctionsImpl.SourceOffsetFunction
Destination end offset function
|
EdgeOffsetFunctions.HasEdgeOffsetFunctions<V,E>
Modifier and Type | Field and Description |
---|---|
protected EdgeOffsetFunctionsImpl.DestinationOffsetFunction |
destinationOffsetFunction
Destination offset function
|
protected EdgeIndexFunctionImpl<V,E> |
edgeIndexFunction
Edge index function
|
protected java.util.Map<V,java.util.Map<E,java.lang.Integer>> |
edgeOffsets
(Vertex-Edge)-indexed edge anchor-point offsets
|
protected EdgeOffsetFunctionsImpl.SourceOffsetFunction |
sourceOffsetFunction
Source offset function
|
Constructor and Description |
---|
EdgeOffsetFunctionsImpl(EdgeIndexFunctionImpl<V,E> edgeIndexFunction)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<V,java.util.Map<E,java.lang.Integer>> |
allocate(edu.uci.ics.jung.graph.Graph<V,E> graph)
Allocate node offset slots
|
EdgeOffsetFunction<V,E> |
getDestOffsetFunction()
Destination-end offset function
|
EdgeOffsetFunction<V,E> |
getSourceOffsetFunction()
Source-end offset function
|
protected void |
init(edu.uci.ics.jung.graph.Graph<V,E> graph)
Initialize
|
private boolean |
isLeft(edu.uci.ics.jung.graph.Graph<V,E> graph,
E edge,
boolean incoming)
Whether edge is left
|
private int |
span(E edge,
edu.uci.ics.jung.graph.Graph<V,E> graph) |
protected java.util.Map<V extends HasIndex,java.util.Map<E,java.lang.Integer>> edgeOffsets
protected final EdgeOffsetFunctionsImpl.SourceOffsetFunction sourceOffsetFunction
protected final EdgeOffsetFunctionsImpl.DestinationOffsetFunction destinationOffsetFunction
protected final EdgeIndexFunctionImpl<V extends HasIndex,E> edgeIndexFunction
public EdgeOffsetFunctionsImpl(EdgeIndexFunctionImpl<V,E> edgeIndexFunction)
edgeIndexFunction
- edge index functionprotected void init(edu.uci.ics.jung.graph.Graph<V,E> graph)
graph
- graphprotected java.util.Map<V,java.util.Map<E,java.lang.Integer>> allocate(edu.uci.ics.jung.graph.Graph<V,E> graph)
graph
- graphprivate boolean isLeft(edu.uci.ics.jung.graph.Graph<V,E> graph, E edge, boolean incoming)
graph
- graphedge
- edgeincoming
- whether edge is incomingpublic EdgeOffsetFunction<V,E> getSourceOffsetFunction()
EdgeOffsetFunctions
getSourceOffsetFunction
in interface EdgeOffsetFunctions<V extends HasIndex,E>
public EdgeOffsetFunction<V,E> getDestOffsetFunction()
EdgeOffsetFunctions
getDestOffsetFunction
in interface EdgeOffsetFunctions<V extends HasIndex,E>