Package org.goplanit.utils.graph
Interface UntypedDirectedGraph<V extends DirectedVertex,E extends DirectedEdge,ES extends EdgeSegment>
-
- All Superinterfaces:
Comparable<IdAble>
,IdAble
,ManagedId
,UntypedGraph<V,E>
- All Known Subinterfaces:
DirectedGraph<V,E,ES>
- All Known Implementing Classes:
ConjugateDirectedGraphImpl
,DirectedGraphImpl
,UntypedDirectedGraphImpl
public interface UntypedDirectedGraph<V extends DirectedVertex,E extends DirectedEdge,ES extends EdgeSegment> extends UntypedGraph<V,E>
Interface for a directed graph- Author:
- markr
-
-
Field Summary
-
Fields inherited from interface org.goplanit.utils.graph.UntypedGraph
GRAPH_ID_CLASS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UntypedDirectedGraph<V,E,ES>
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.GraphEntities<ES>
getEdgeSegments()
Collect edges segments of graphdefault boolean
isEmpty()
Verify if empty, empty when no nodes, edges, edge segments existUntypedDirectedGraph<V,E,ES>
shallowClone()
Create a shallow copy of this entitydefault boolean
validate()
validate the graph, issues will be logged-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, getId, idEquals, idHashCode
-
Methods inherited from interface org.goplanit.utils.id.ManagedId
getIdClass, recreateManagedIds, resetChildManagedIdEntities
-
Methods inherited from interface org.goplanit.utils.graph.UntypedGraph
getEdges, getVertices, transformGeometries
-
-
-
-
Method Detail
-
getEdgeSegments
GraphEntities<ES> getEdgeSegments()
Collect edges segments of graph- Returns:
- edges segments
-
isEmpty
default boolean isEmpty()
Verify if empty, empty when no nodes, edges, edge segments exist- Specified by:
isEmpty
in interfaceUntypedGraph<V extends DirectedVertex,E extends DirectedEdge>
- Returns:
- true when no nodes, edges, edge segments, false otherwise
-
validate
default boolean validate()
validate the graph, issues will be logged- Specified by:
validate
in interfaceUntypedGraph<V extends DirectedVertex,E extends DirectedEdge>
- Returns:
- true when valid, false otherwise
-
shallowClone
UntypedDirectedGraph<V,E,ES> shallowClone()
Create a shallow copy of this entity- Specified by:
shallowClone
in interfaceIdAble
- Specified by:
shallowClone
in interfaceUntypedGraph<V extends DirectedVertex,E extends DirectedEdge>
- Returns:
- shallow copy of entity
-
deepClone
UntypedDirectedGraph<V,E,ES> 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 interfaceIdAble
- Specified by:
deepClone
in interfaceUntypedGraph<V extends DirectedVertex,E extends DirectedEdge>
- Returns:
- deep copy of entity
-
-