suvi.testapp
Class TestGraph
java.lang.Object
|
+--suvi.testapp.TestGraph
- All Implemented Interfaces:
- javautils.graph.adt.Graph
- public class TestGraph
- extends java.lang.Object
- implements javautils.graph.adt.Graph
An implementation of the Graph
-interface for the Suvi
Testing Application.
Constructor Summary |
TestGraph(java.util.List nodes,
javautils.maps.ObjectToListMap nodeToEdges)
A Graph created from the given "associative map"
representation. |
Method Summary |
java.util.List |
edgesFrom(java.lang.Object node)
|
java.util.List |
nodes()
|
java.lang.Object |
sourceOf(java.lang.Object edge)
|
java.lang.Object |
targetOf(java.lang.Object edge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestGraph
public TestGraph(java.util.List nodes,
javautils.maps.ObjectToListMap nodeToEdges)
A Graph created from the given "associative map"
representation.
nodes
public java.util.List nodes()
- Specified by:
nodes
in interface javautils.graph.adt.Graph
edgesFrom
public java.util.List edgesFrom(java.lang.Object node)
- Specified by:
edgesFrom
in interface javautils.graph.adt.Graph
targetOf
public java.lang.Object targetOf(java.lang.Object edge)
- Specified by:
targetOf
in interface javautils.graph.adt.Graph
sourceOf
public java.lang.Object sourceOf(java.lang.Object edge)
- Specified by:
sourceOf
in interface javautils.graph.adt.Graph