Package org.planit.utils.graph
Interface Graph<V extends Vertex,E extends Edge>
-
- All Known Subinterfaces:
DirectedGraph<V,E,ES>
- All Known Implementing Classes:
DirectedGraphImpl
,GraphImpl
public interface Graph<V extends Vertex,E extends Edge>
A graph interface consisting of vertices and edges- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Edges<E>
getEdges()
collect edges of graphlong
getId()
collect the id of this graphVertices<V>
getVertices()
collect vertices of graphdefault void
transformGeometries(org.opengis.referencing.operation.MathTransform transformer)
transform all geometries of the nodes and edges using the same transformer, can be used to transform from one coordinate reference system to another, or perform translations, etc.default boolean
validate()
validate the graph, issues will be logged
-
-
-
Method Detail
-
getId
long getId()
collect the id of this graph- Returns:
- graph id
-
validate
default boolean validate()
validate the graph, issues will be logged- Returns:
- true when valid, false otherwise
-
transformGeometries
default void transformGeometries(org.opengis.referencing.operation.MathTransform transformer) throws org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
transform all geometries of the nodes and edges using the same transformer, can be used to transform from one coordinate reference system to another, or perform translations, etc.- Parameters:
transformer
- to apply- Throws:
org.opengis.geometry.MismatchedDimensionException
- thrown if errororg.opengis.referencing.operation.TransformException
- thrown if error
-
-