org.apache.uima.internal.util
Class Graph

java.lang.Object
  extended by org.apache.uima.internal.util.Graph

public class Graph
extends java.lang.Object

A simple graph class.

See Also:
GraphNode

Field Summary
protected  GraphNode root
           
 
Constructor Summary
Graph()
           
 
Method Summary
static void collectNodes(GraphNode n, java.util.Vector<GraphNode> nodes)
           
protected static int getNodeCode(GraphNode n, java.util.Vector<GraphNode> nodes)
           
 GraphNode getRoot()
           
 void setRoot(GraphNode root)
          Set the root of the graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

protected GraphNode root
Constructor Detail

Graph

public Graph()
Method Detail

getRoot

public GraphNode getRoot()
Returns:
The root of the graph.

setRoot

public void setRoot(GraphNode root)
Set the root of the graph.

Parameters:
root - The root node.

getNodeCode

protected static int getNodeCode(GraphNode n,
                                 java.util.Vector<GraphNode> nodes)

collectNodes

public static void collectNodes(GraphNode n,
                                java.util.Vector<GraphNode> nodes)


Copyright © 2013. All Rights Reserved.