Package org.planit.utils.graph
Interface DirectedGraph<V extends DirectedVertex,E extends DirectedEdge,ES extends EdgeSegment>
-
- All Superinterfaces:
Graph<V,E>
- All Known Implementing Classes:
DirectedGraphImpl
public interface DirectedGraph<V extends DirectedVertex,E extends DirectedEdge,ES extends EdgeSegment> extends Graph<V,E>
Interface for an undirected graph- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EdgeSegments<ES>getEdgeSegments()Collect edges segments of graphdefault voidtransformGeometries(org.opengis.referencing.operation.MathTransform transformer)transform all geometries of the vertices, edges, and edge segments using the same transformer, can be used to transform from one coordinate reference system to another, or perform translations, etc.default booleanvalidate()validate the graph, issues will be logged-
Methods inherited from interface org.planit.utils.graph.Graph
getEdges, getId, getVertices
-
-
-
-
Method Detail
-
getEdgeSegments
EdgeSegments<ES> getEdgeSegments()
Collect edges segments of graph- Returns:
- edges segments
-
validate
default boolean validate()
validate the graph, issues will be logged- Specified by:
validatein interfaceGraph<V extends DirectedVertex,E extends DirectedEdge>- 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.TransformExceptiontransform all geometries of the vertices, edges, and edge segments using the same transformer, can be used to transform from one coordinate reference system to another, or perform translations, etc.- Specified by:
transformGeometriesin interfaceGraph<V extends DirectedVertex,E extends DirectedEdge>- Parameters:
transformer- to apply- Throws:
org.opengis.geometry.MismatchedDimensionException- thrown if errororg.opengis.referencing.operation.TransformException- thrown if error
-
-