Package org.goplanit.graph
Class GraphImpl<V extends Vertex,E extends Edge>
- java.lang.Object
-
- org.goplanit.utils.id.IdAbleImpl
-
- org.goplanit.graph.UntypedGraphImpl<V,E>
-
- org.goplanit.graph.GraphImpl<V,E>
-
- All Implemented Interfaces:
Cloneable,Comparable<IdAble>,Graph<V,E>,UntypedGraph<V,E>,IdAble,ManagedId
public class GraphImpl<V extends Vertex,E extends Edge> extends UntypedGraphImpl<V,E> implements Graph<V,E>
A graph implementation consisting of vertices and edges- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.graph.UntypedGraphImpl
edges, vertices
-
Fields inherited from interface org.goplanit.utils.graph.UntypedGraph
GRAPH_ID_CLASS
-
-
Constructor Summary
Constructors Constructor Description GraphImpl(GraphImpl<V,E> graphImpl)Copy constructor for shallow copyGraphImpl(IdGroupingToken groupId, GraphEntities<V> vertices, GraphEntities<E> edges)Graph Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphImpl<V,E>clone()Create a shallow copy of this entity-
Methods inherited from class org.goplanit.graph.UntypedGraphImpl
generatedGraphId, getEdges, getGraphIdGroupingToken, getIdClass, getVertices, recreateManagedIds
-
Methods inherited from class org.goplanit.utils.id.IdAbleImpl
equals, generateAndSetId, generateId, getId, hashCode, setId
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
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, isEmpty, transformGeometries, validate
-
-
-
-
Constructor Detail
-
GraphImpl
public GraphImpl(IdGroupingToken groupId, GraphEntities<V> vertices, GraphEntities<E> edges)
Graph Constructor- Parameters:
groupId- contiguous id generation within this group for instances of this classvertices- to useedges- to use
-
-