vitro.graph
Class Graph

java.lang.Object
  extended by vitro.Model
      extended by vitro.graph.Graph

public class Graph
extends Model


Field Summary
 Set<Edge> edges
           
protected  Graph model
           
 List<Node> nodes
           
 
Fields inherited from class vitro.Model
actors
 
Constructor Summary
Graph()
           
 
Method Summary
 Edge createEdge(Node a, Node b)
           
 Node createNode()
           
 Node getLocation(Actor a)
           
 Node getNode(Position position)
           
protected  List<Edge> path(Node start, Node destination)
           
protected  Set<Node> reachable(Node start)
           
protected  Set<Node> reachable(Node root, int depth)
           
 
Methods inherited from class vitro.Model
cleanup, done
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

edges

public final Set<Edge> edges

nodes

public final List<Node> nodes

model

protected final Graph model
Constructor Detail

Graph

public Graph()
Method Detail

createNode

public Node createNode()

createEdge

public Edge createEdge(Node a,
                       Node b)

getLocation

public Node getLocation(Actor a)

getNode

public Node getNode(Position position)

path

protected List<Edge> path(Node start,
                          Node destination)

reachable

protected Set<Node> reachable(Node start)

reachable

protected Set<Node> reachable(Node root,
                              int depth)