T - The type of the events in the graphU - The output type of the triaging function used to create
the graphpublic class GraphPlotter<T extends Event,U>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GraphPlotter.Format
The format of the resulting graph.
|
| Modifier and Type | Field and Description |
|---|---|
protected CayleyGraph<T,U> |
m_graph
The Cayley graph to plot
|
| Constructor and Description |
|---|
GraphPlotter(CayleyGraph<T,U> graph)
Creates a new plotter for a given graph
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
printEdge(Edge<T> e,
GraphPlotter.Format format)
Prints the edge in Dot format
|
protected java.lang.String |
printEdges(java.util.Set<Edge<T>> edges,
int source_id,
GraphPlotter.Format format)
Prints the edges of the graph, by merging the label of all edges
with the same target state
|
protected java.lang.String |
printVertex(Vertex<T> v,
GraphPlotter.Format format)
Prints the vertex in Dot format
|
java.lang.String |
toDot()
Produces a Dot file to draw the graph
|
java.lang.String |
toDot(GraphPlotter.Format format)
Produces a Dot file to draw the graph
|
protected final CayleyGraph<T extends Event,U> m_graph
public GraphPlotter(CayleyGraph<T,U> graph)
graph - The graphpublic java.lang.String toDot(GraphPlotter.Format format)
format - The format to print outpublic java.lang.String toDot()
protected java.lang.String printVertex(Vertex<T> v, GraphPlotter.Format format)
v - The vertexformat - The format to print outprotected java.lang.String printEdge(Edge<T> e, GraphPlotter.Format format)
e - The edgeformat - The format to print outprotected java.lang.String printEdges(java.util.Set<Edge<T>> edges, int source_id, GraphPlotter.Format format)
edges - The list of edgessource_id - The ID of the source state for all the labelsCopyright © Sylvain HallĂ©. All Rights Reserved.