Interface Graph<V extends Vertex,​E extends Edge>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      Edges<E> getEdges()
      collect edges of graph
      long getId()
      collect the id of this graph
      Vertices<V> getVertices()
      collect vertices of graph
      default 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
      • getVertices

        Vertices<V> getVertices()
        collect vertices of graph
        Returns:
        vertices
      • getEdges

        Edges<E> getEdges()
        collect edges of graph
        Returns:
        edges
      • 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 error
        org.opengis.referencing.operation.TransformException - thrown if error