Interface GraphvizGraph
- All Known Implementing Classes:
LinkedDirectedGraph
,LinkedUndirectedGraph
public interface GraphvizGraph
A 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
function can be used to get a
visualization of the object for debugging purpose.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A Graphviz edge.static interface
A Graphviz node. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve a list of edges in the graph.Retrieve a list of nodes in the graph.getName()
Name of the graph.boolean
Graph type.
-
Method Details
-
getName
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
List<GraphvizGraph.GraphvizNode> getGraphvizNodes()Retrieve a list of nodes in the graph.- Returns:
- A list of nodes in the graph.
-
getGraphvizEdges
List<GraphvizGraph.GraphvizEdge> getGraphvizEdges()Retrieve a list of edges in the graph.- Returns:
- A list of edges in the graph.
-