public String graph(FPTreeRoot tree){
  StringBuffer text=new StringBuffer();
  text.append("digraph FPTree {\n");
  text.append("N0 [label=\"ROOT\"]\n");
  tree.graphFPTree(text);
  text.append("}\n");
  return text.toString();
}

public String graph ( FPTreeRoot tree ) { StringBuffer text = new StringBuffer ( ) ; text . append ( "digraph FPTree {\n" ) ; text . append ( "N0 [label=\"ROOT\"]\n" ) ; tree . graphFPTree ( text ) ; text . append ( "}\n" ) ; return text . toString ( ) ; }
assemble a dot graph representation of the fp - tree .
