Package stdlib
Class GraphvizBuilder
java.lang.Object
stdlib.GraphvizBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEdge
(int src, int dst) void
void
void
void
void
addLabeledEdge
(int src, int dst, double label) void
addLabeledEdge
(int src, int dst, double label, String properties) void
addLabeledEdge
(int src, int dst, float label) void
addLabeledEdge
(int src, int dst, float label, String properties) void
addLabeledEdge
(int src, int dst, int label) void
addLabeledEdge
(int src, int dst, int label, String properties) void
addLabeledEdge
(int src, int dst, String label) void
addLabeledEdge
(int src, int dst, String label, String properties) void
addLabeledEdge
(Object src, Object dst, double label) void
addLabeledEdge
(Object src, Object dst, double label, String properties) void
addLabeledEdge
(Object src, Object dst, float label) void
addLabeledEdge
(Object src, Object dst, float label, String properties) void
addLabeledEdge
(Object src, Object dst, int label) void
addLabeledEdge
(Object src, Object dst, int label, String properties) void
addLabeledEdge
(Object src, Object dst, String label) void
addLabeledEdge
(Object src, Object dst, String label, String properties) void
addLabeledNode
(int id, String label) void
addLabeledNode
(int id, String label, String properties) void
addLabeledNode
(Object o, String label) void
addLabeledNode
(Object o, String label, String properties) void
addLabeledNullEdge
(Object src, String label) void
addLabeledNullEdgeString
(String src, String label) void
addNode
(int id) void
void
void
void
addNullEdge
(Object src) void
addNullEdgeString
(String src) static void
binaryHeapToFile
(double[] heap, int N) static void
binaryHeapToFile
(double[] heap, int N, String filename) static void
binaryHeapToFile
(Object[] heap, int N) static void
binaryHeapToFile
(Object[] heap, int N, String filename) static void
static void
nodesToFile
(Object root) Shows simple recursive data structures.static void
nodesToFile
(Object root, String filename) static void
nodesToFile
(Object root, String filename, String properties, boolean withLabeledEdges) static void
setBaseDirName
(String baseDirName) Graphics files are saved in directory baseDirName/Graphviz.void
void
void
toFileUndirected
(String filename) void
toFileUndirected
(String filename, String properties) static void
ufToFile
(int[] uf) static void
-
Constructor Details
-
GraphvizBuilder
public GraphvizBuilder()
-
-
Method Details
-
graphvizAddPossibleDotLocation
-
binaryHeapToFile
-
binaryHeapToFile
-
ufToFile
-
nodesToFile
Shows simple recursive data structures. The class of the root parameter is taken to be the must be an element of the recursive node class.- Parameters:
root
-
-
nodesToFile
-
binaryHeapToFile
-
binaryHeapToFile
-
ufToFile
-
nodesToFile
public static void nodesToFile(Object root, String filename, String properties, boolean withLabeledEdges) -
addNode
-
addNode
-
addLabeledNode
-
addLabeledNode
-
addNode
-
addNode
-
addLabeledNode
-
addLabeledNode
-
addEdge
-
addEdge
-
addLabeledEdge
-
addLabeledEdge
-
addLabeledEdge
-
addLabeledEdge
-
addLabeledEdge
-
addLabeledEdge
-
addLabeledEdge
-
addLabeledEdge
-
addEdge
-
addEdge
-
addLabeledEdge
-
addLabeledEdge
-
addLabeledEdge
-
addLabeledEdge
-
addLabeledEdge
-
addLabeledEdge
-
addLabeledEdge
-
addLabeledEdge
-
addNullEdge
-
addNullEdgeString
-
addFromNullEdgeString
-
addLabeledNullEdge
-
addLabeledNullEdgeString
-
toFileUndirected
-
toFileUndirected
-
toFile
-
toFile
-
setBaseDirName
Graphics files are saved in directory baseDirName/Graphviz. If baseDirName is a relative pathname, then it is placed in the users Desktop folder. baseDirName directory is created if it does not already exist. If baseDirName/Graphviz exists, then numbers are appended to the directory name: "baseDirName/Graphviz 1", "baseDirName/Graphviz 2", etc.
-