at.jku.ssw
Class DotMaker

java.lang.Object
  extended by at.jku.ssw.DotMaker

public class DotMaker
extends java.lang.Object

A maker of dot strings for GraphViz in order to display data structures.


Constructor Summary
DotMaker()
           
 
Method Summary
static java.lang.String makeDotForBinaryTree(TreeNode root)
          Creates a dot string for a binary tree.
static java.lang.String makeDotForGraph(Graph graph)
          Creates a dot string for a graph.
static java.lang.String makeDotForHeap(char[] values)
          Creates a dot string which represents the heap.
static java.lang.String makeDotForHeap(java.lang.Object[] values)
          Creates a dot string which represents the heap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DotMaker

public DotMaker()
Method Detail

makeDotForBinaryTree

public static java.lang.String makeDotForBinaryTree(TreeNode root)
Creates a dot string for a binary tree.


makeDotForHeap

public static java.lang.String makeDotForHeap(char[] values)
Creates a dot string which represents the heap.


makeDotForHeap

public static java.lang.String makeDotForHeap(java.lang.Object[] values)
Creates a dot string which represents the heap.


makeDotForGraph

public static java.lang.String makeDotForGraph(Graph graph)
Creates a dot string for a graph.