org.jzy3d.maths.graphs
Class DefaultGraph<V,E>
java.lang.Object
org.jzy3d.maths.graphs.DefaultGraph<V,E>
- All Implemented Interfaces:
- IGraph<V,E>
public class DefaultGraph<V,E>
- extends Object
- implements IGraph<V,E>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
vertices
protected List<V> vertices
edges
protected List<E> edges
edgeStart
protected Map<E,V> edgeStart
edgeStop
protected Map<E,V> edgeStop
DefaultGraph
public DefaultGraph()
addVertex
public void addVertex(V vertex)
- Specified by:
addVertex
in interface IGraph<V,E>
getVertex
public V getVertex(int i)
- Specified by:
getVertex
in interface IGraph<V,E>
getVertices
public List<V> getVertices()
- Specified by:
getVertices
in interface IGraph<V,E>
addEdge
public void addEdge(E edge,
V v1,
V v2)
- Specified by:
addEdge
in interface IGraph<V,E>
getEdges
public List<E> getEdges()
- Specified by:
getEdges
in interface IGraph<V,E>
getEdgeStartVertex
public V getEdgeStartVertex(E e)
- Specified by:
getEdgeStartVertex
in interface IGraph<V,E>
getEdgeStopVertex
public V getEdgeStopVertex(E e)
- Specified by:
getEdgeStopVertex
in interface IGraph<V,E>
getRandomVertex
public V getRandomVertex()
- Specified by:
getRandomVertex
in interface IGraph<V,E>
Copyright © 2013. All rights reserved.