public class SharedTreeGraph
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<SharedTreeSubgraph> |
subgraphArray |
Constructor and Description |
---|
SharedTreeGraph()
Make a new forest.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
SharedTreeSubgraph |
makeSubgraph(java.lang.String name)
Make a new tree.
|
void |
print()
Debug printout of graph structure.
|
void |
printDot(java.io.PrintStream os,
int maxLevelsToPrintPerEdge,
boolean detail,
java.lang.String optionalTitle,
PrintMojo.PrintTreeOptions treeOptions)
Print graph output in a format readable by dot (graphviz).
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
toJson() |
SharedTreeNode |
walkNodes(int subgraphId,
java.lang.String path) |
public final java.util.ArrayList<SharedTreeSubgraph> subgraphArray
public SharedTreeSubgraph makeSubgraph(java.lang.String name)
name
- Tree name.public void print()
public SharedTreeNode walkNodes(int subgraphId, java.lang.String path)
public void printDot(java.io.PrintStream os, int maxLevelsToPrintPerEdge, boolean detail, java.lang.String optionalTitle, PrintMojo.PrintTreeOptions treeOptions)
os
- Stream to write the output tomaxLevelsToPrintPerEdge
- Limit the number of individual categorical level names printed per edgedetail
- include addtional node detail informationoptionalTitle
- Optional title to override the defaulttreeOptions
- object of PrintTreeOptions to control how trees are printed in terms of font size and number of decimal places for numerical valuespublic java.util.List<java.util.Map<java.lang.String,java.lang.Object>> toJson()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object