se.lth.cs.nlp.nlputils.deptree
Class DepGraph

java.lang.Object
  extended by se.lth.cs.nlp.nlputils.deptree.DepGraph

public class DepGraph
extends Object

A dependency graph consisting of an array of nodes. The first node should be a dummy root node.

Author:
Richard Johansson (richard@cs.lth.se)

Field Summary
 DepNode[] nodes
          The array of nodes.
 
Constructor Summary
DepGraph()
           
 
Method Summary
 void print()
          Prints the graph to stdout.
 void print(PrintWriter out)
          Prints the graph to a writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

public DepNode[] nodes
The array of nodes.

Constructor Detail

DepGraph

public DepGraph()
Method Detail

print

public void print()
Prints the graph to stdout.


print

public void print(PrintWriter out)
Prints the graph to a writer.

Parameters:
out - the writer.