Class DirectedAcyclicGraphWriter<T>
Inheritance
DirectedAcyclicGraphWriter<T>
Assembly: MetricSetEmitters.dll
Syntax
public abstract class DirectedAcyclicGraphWriter<T>
where T : IDirectedAcyclicGraph<T>
Type Parameters
Constructors
View Source
DirectedAcyclicGraphWriter(StringBuilder, Func<T, String>)
Declaration
public DirectedAcyclicGraphWriter(StringBuilder output, Func<T, string> color)
Parameters
Methods
View Source
Label(T)
Default node label is the short name of its type. You
may override this with more sophisticated labelling schemes.
Declaration
protected virtual void Label(T t)
Parameters
Type |
Name |
Description |
T |
t |
|
View Source
Label(T, Object)
Create the name [label=label
; attributes...];
line for a single node.
Declaration
protected void Label(T t, object label)
Parameters
Type |
Name |
Description |
T |
t |
|
Object |
label |
|
View Source
Name(T)
Default node name (identifier) is its C# hash code. You may
override this with more sophisticated naming schemes.
Declaration
protected virtual string Name(T t)
Parameters
Type |
Name |
Description |
T |
t |
|
Returns
View Source
Shape(T)
Override this to set the shape
of a node.
Declaration
protected virtual string Shape(T _)
Parameters
Type |
Name |
Description |
T |
_ |
|
Returns
View Source
Style(T)
Override this to set the style
of a node.
Declaration
protected virtual string Style(T _)
Parameters
Type |
Name |
Description |
T |
_ |
|
Returns
Extension Methods