public class GraphDebuggingUtils extends java.lang.Object
| Constructor and Description |
|---|
GraphDebuggingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <NodeT,X extends java.lang.Exception> |
getDotString(NodeT root,
IIdProvider<java.lang.Integer,NodeT> optionalIdProvider,
IMeshWalker<NodeT,X>... walkers)
Returns a string representation of the graph in Dot format suitable for
rendering with Graphviz.
|
static <NodeT,X extends java.lang.Exception> |
getShortString(NodeT root,
IIdProvider<java.lang.Integer,NodeT> optionalIdProvider,
IMeshWalker<NodeT,X>... walkers)
Returns a human-readable string representation of the graph.
|
static <NodeT,X extends java.lang.Exception> |
getString(NodeT root,
IIdProvider<java.lang.Integer,NodeT> optionalIdProvider,
IMeshWalker<NodeT,X>... walkers)
Returns a string representation of the graph.
|
public GraphDebuggingUtils()
@SafeVarargs public static <NodeT,X extends java.lang.Exception> java.lang.String getString(NodeT root, IIdProvider<java.lang.Integer,NodeT> optionalIdProvider, IMeshWalker<NodeT,X>... walkers) throws X extends java.lang.Exception
root - the root node of the graph to visualize.optionalIdProvider - an optional IdProvider that provides integer IDs for all Nodes. If
null, we will use an IdManager. The IDs are assumed to be
stable (the same on each query of the same node).walkers - the mesh walkers used to traverse the graph.X extends java.lang.Exception@SafeVarargs public static <NodeT,X extends java.lang.Exception> java.lang.String getShortString(NodeT root, IIdProvider<java.lang.Integer,NodeT> optionalIdProvider, IMeshWalker<NodeT,X>... walkers) throws X extends java.lang.Exception
root - the root node of the graph to visualize.optionalIdProvider - an optional IdProvider that provides integer IDs for all Nodes. If
null, we will use an IdManager. The IDs are assumed to be
stable (the same on each query of the same node).walkers - the mesh walkers used to traverse the graph.X extends java.lang.Exception@SafeVarargs public static <NodeT,X extends java.lang.Exception> java.lang.String getDotString(NodeT root, IIdProvider<java.lang.Integer,NodeT> optionalIdProvider, IMeshWalker<NodeT,X>... walkers) throws X extends java.lang.Exception
root - the root node of the graph to visualize.optionalIdProvider - an optional IdProvider that provides integer IDs for all Nodes. If
null, we will use an IdManager. The IDs are assumed to be
stable (the same on each query of the same node).walkers - the mesh walkers used to traverse different classes of edges found
in the graph.X extends java.lang.Exception