Package org.jzy3d.maths.graphs
Class DefaultGraph<V,E>
- java.lang.Object
-
- org.jzy3d.maths.graphs.DefaultGraph<V,E>
-
-
Constructor Summary
Constructors Constructor Description DefaultGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEdge(E edge, V v1, V v2)
void
addVertex(V vertex)
List<E>
getEdges()
V
getEdgeStartVertex(E e)
V
getEdgeStopVertex(E e)
V
getRandomVertex()
V
getVertex(int i)
List<V>
getVertices()
-
-
-
Method Detail
-
getEdgeStartVertex
public V getEdgeStartVertex(E e)
- Specified by:
getEdgeStartVertex
in interfaceIGraph<V,E>
-
getEdgeStopVertex
public V getEdgeStopVertex(E e)
- Specified by:
getEdgeStopVertex
in interfaceIGraph<V,E>
-
getRandomVertex
public V getRandomVertex()
- Specified by:
getRandomVertex
in interfaceIGraph<V,E>
-
-