public static class DFSExample.DFSResultDOTHelper<N,E> extends EmptyDOTHelper<N,E>
LABEL, SHAPE| Constructor and Description |
|---|
DFSResultDOTHelper(DFSExample.MyDFSVisitor<N,E> vis) |
DFSResultDOTHelper(Map<N,Integer> dfsNumbers,
Map<E,DFSExample.EdgeType> edgeTypes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getEdgeProperties(N src,
E edge,
N tgt,
Map<String,String> properties)
Retrieves the GraphVIZ properties for rendering a single edge.
|
boolean |
getNodeProperties(N node,
Map<String,String> properties)
Retrieves the GraphVIZ properties for rendering a single node.
|
writePostamble, writePreamblepublic DFSResultDOTHelper(Map<N,Integer> dfsNumbers, Map<E,DFSExample.EdgeType> edgeTypes)
public DFSResultDOTHelper(DFSExample.MyDFSVisitor<N,E> vis)
public boolean getNodeProperties(N node, Map<String,String> properties)
GraphDOTHelperMap argument. Note that if an implementation
of a base class is overridden, it is probably a good idea to call
super.getNodeProperties(node, properties); at the beginning of
the method.getNodeProperties in interface GraphDOTHelper<N,E>getNodeProperties in class EmptyDOTHelper<N,E>node - the node to be renderedproperties - the property mappublic boolean getEdgeProperties(N src, E edge, N tgt, Map<String,String> properties)
GraphDOTHelperMap argument. Note that if an implementation
of a base class is overridden, it is probably a good idea to call
super.getEdgeProperties(node, properties); at the beginning of
the method.getEdgeProperties in interface GraphDOTHelper<N,E>getEdgeProperties in class EmptyDOTHelper<N,E>edge - the edge to be renderedproperties - the property mapCopyright © 2015. All Rights Reserved.