Interface GraphvizGraph
-
- All Known Implementing Classes:
ControlFlowGraph,LinkedDirectedGraph,LinkedUndirectedGraph
public interface GraphvizGraphA graph that can be dumped to a Graphviz DOT file.An object which can be visualized as a graph should implement this interface. The
DotFormatter.toDot(com.google.javascript.rhino.Node)function can be used to get a visualization of the object for debugging purpose.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceGraphvizGraph.GraphvizEdgeA Graphviz edge.static interfaceGraphvizGraph.GraphvizNodeA Graphviz node.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<GraphvizGraph.GraphvizEdge>getGraphvizEdges()Retrieve a list of edges in the graph.java.util.List<GraphvizGraph.GraphvizNode>getGraphvizNodes()Retrieve a list of nodes in the graph.java.lang.StringgetName()Name of the graph.booleanisDirected()Graph type.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Name of the graph.- Returns:
- Name of the graph.
-
isDirected
boolean isDirected()
Graph type.- Returns:
- True if the graph is a directed graph.
-
getGraphvizNodes
java.util.List<GraphvizGraph.GraphvizNode> getGraphvizNodes()
Retrieve a list of nodes in the graph.- Returns:
- A list of nodes in the graph.
-
getGraphvizEdges
java.util.List<GraphvizGraph.GraphvizEdge> getGraphvizEdges()
Retrieve a list of edges in the graph.- Returns:
- A list of edges in the graph.
-
-