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>
Vertex for building the contraction hierarchy, which contains an original vertex from
graph.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intLevel that is assigned to this vertex during contraction which is used to determine upward edges in the hierarchy.(package private) V1Original vertex fromgraphthis instance represents.(package private) intIdentifies the position inverticesDataandshortcutEdgeslists, that corresponds to this vertex. -
Constructor Summary
ConstructorsConstructorDescriptionContractionVertex(V1 vertex, int vertexId) Constructs a new vertex for given original vertexvertexandvertexId. -
Method Summary
-
Field Details
-
vertexId
int vertexIdIdentifies the position inverticesDataandshortcutEdgeslists, that corresponds to this vertex. -
vertex
V1 vertexOriginal vertex fromgraphthis instance represents. -
contractionLevel
int contractionLevelLevel that is assigned to this vertex during contraction which is used to determine upward edges in the hierarchy.
-
-
Constructor Details
-
ContractionVertex
ContractionVertex(V1 vertex, int vertexId) Constructs a new vertex for given original vertexvertexandvertexId.- Parameters:
vertex- vertex ingraphvertexId- id
-
-
Method Details
-
equals
-
hashCode
-