org.jzy3d.maths.graphs
Class DefaultGraph<V,E>
java.lang.Object
   org.jzy3d.maths.graphs.DefaultGraph<V,E>
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:
- addVertexin interface- IGraph<V,E>
 
- 
 
getVertex
public V getVertex(int i)
- 
- Specified by:
- getVertexin interface- IGraph<V,E>
 
- 
 
getVertices
public List<V> getVertices()
- 
- Specified by:
- getVerticesin interface- IGraph<V,E>
 
- 
 
addEdge
public void addEdge(E edge,
                    V v1,
                    V v2)
- 
- Specified by:
- addEdgein interface- IGraph<V,E>
 
- 
 
getEdges
public List<E> getEdges()
- 
- Specified by:
- getEdgesin interface- IGraph<V,E>
 
- 
 
getEdgeStartVertex
public V getEdgeStartVertex(E e)
- 
- Specified by:
- getEdgeStartVertexin interface- IGraph<V,E>
 
- 
 
getEdgeStopVertex
public V getEdgeStopVertex(E e)
- 
- Specified by:
- getEdgeStopVertexin interface- IGraph<V,E>
 
- 
 
getRandomVertex
public V getRandomVertex()
- 
- Specified by:
- getRandomVertexin interface- IGraph<V,E>
 
-