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

    • Field Detail

      • GRAPH_ID_CLASS

        static final Class<UntypedGraph> GRAPH_ID_CLASS
        id class for generating ids
    • Method Detail

      • getVertices

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

        GraphEntities<E> getEdges()
        collect edges of graph
        Returns:
        edges
      • isEmpty

        default boolean isEmpty()
        Verify if empty, empty when no nodes and edges exist
        Returns:
        true when no nodes and edges, false otherwise
      • 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
      • shallowClone

        UntypedGraph<V,​E> shallowClone()
        Create a shallow copy of this entity
        Specified by:
        shallowClone in interface IdAble
        Returns:
        shallow copy of entity
      • deepClone

        UntypedGraph<V,​E> deepClone()
        An id entity should always support a deep copy, i.e., all "owned" members will be deep copied when a clone of this instance is created via this call. To be used with caution if not called by managed id container related code
        Specified by:
        deepClone in interface IdAble
        Returns:
        deep copy of entity