![]() |
GrammarScope
4.0.0
|


Classes | |
| class | Pair |
Public Member Functions | |
| EdgeIndexFunctionImpl () | |
| int | getIndex (final Graph< V, E > graph, final E edge) |
| void | reset (final Graph< V, E > g, final E edge) |
| void | reset () |
Protected Attributes | |
| Map< E, Integer > | edgeIndices |
Package Functions | |
| void | init (final Graph< V, E > graph) |
| final Comparator< E > | makeEdgeIndexComparator () |
Private Member Functions | |
| Pair< Integer, Map< E, Integer > > | allocate (final Graph< V, E > graph) |
| int | allocateHeight (final E edge0, final Graph< V, E > graph, final Map< E, Integer > edge2HeightMap) |
| Pair< V, V > | getEnds (final E edge, final Graph< V, E > graph) |
| boolean | overlap (final E edge1, final E edge2, final Graph< V, E > graph) |
| boolean | join (final E edge1, final E edge2, final Graph< V, E > graph) |
| int | compareTo (final V v1, final V v2) |
Edge index (height) function. First indexes vertices following vertex-ordering as defined by vertex comparator. Then allocates heights.
| <V> | vertex type |
| <E> | edge type |
| grammarscope.jung2.EdgeIndexFunctionImpl< V extends HasIndex, E >.EdgeIndexFunctionImpl | ( | ) |
Constructor
|
private |
Layout edge heights
| graph | graph |
|
private |
Allocate height slot (0-based)
| edge0 | target edge to find height for |
| graph | graph |
| edge2HeightMap | edge to height map |
|
private |
Compare vertex indices
| v1 | vertex1 |
| v2 | vertex2 |
|
private |
Get edge ends (lowest first, as if undirected)
| edge | edge |
| graph | graph |
| int grammarscope.jung2.EdgeIndexFunctionImpl< V extends HasIndex, E >.getIndex | ( | final Graph< V, E > | graph, |
| final E | edge | ||
| ) |
|
package |
Initialize
| graph | graph |
|
private |
Whether first edge joins second (its target is the second's source or target)
| edge1 | edge 1 |
| edge2 | edge 2 |
| graph | graph |
|
package |
Get edge index comparator
|
private |
Whether edges overlap
| edge1 | edge |
| edge2 | edge |
| graph | graph |
| void grammarscope.jung2.EdgeIndexFunctionImpl< V extends HasIndex, E >.reset | ( | ) |
| void grammarscope.jung2.EdgeIndexFunctionImpl< V extends HasIndex, E >.reset | ( | final Graph< V, E > | g, |
| final E | edge | ||
| ) |
|
protected |
Allocation table
1.8.17