Module org.jgrapht.core
Package org.jgrapht.alg.shortestpath
Class ContractionHierarchyPrecomputation.ContractionVertex<V1>
- java.lang.Object
-
- org.jgrapht.alg.shortestpath.ContractionHierarchyPrecomputation.ContractionVertex<V1>
-
- Type Parameters:
V1- type of the original vertex.
- Enclosing class:
- ContractionHierarchyPrecomputation<V,E>
public static class ContractionHierarchyPrecomputation.ContractionVertex<V1> extends java.lang.ObjectVertex for building the contraction hierarchy, which contains an original vertex fromgraph.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intcontractionLevelLevel that is assigned to this vertex during contraction which is used to determine upward edges in the hierarchy.(package private) V1vertexOriginal vertex fromgraphthis instance represents.(package private) intvertexIdIdentifies the position inverticesDataandshortcutEdgeslists, that corresponds to this vertex.
-
Constructor Summary
Constructors Constructor Description ContractionVertex(V1 vertex, int vertexId)Constructs a new vertex for given original vertexvertexandvertexId.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()
-
-
-
Field Detail
-
vertexId
int vertexId
Identifies the position inverticesDataandshortcutEdgeslists, that corresponds to this vertex.
-
vertex
V1 vertex
Original vertex fromgraphthis instance represents.
-
contractionLevel
int contractionLevel
Level that is assigned to this vertex during contraction which is used to determine upward edges in the hierarchy.
-
-
Constructor Detail
-
ContractionVertex
ContractionVertex(V1 vertex, int vertexId)
Constructs a new vertex for given original vertexvertexandvertexId.- Parameters:
vertex- vertex ingraphvertexId- id
-
-