Show / Hide Table of Contents

Class DirectedAcyclicGraphWriter<T>

Helpful base class for sharing IDirectedAcyclicGraph<T> -> String logic across Expression and Table nodes.

Inheritance
Object
DirectedAcyclicGraphWriter<T>
DotExpression
DotTable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Mangrove.MetricSetEmitters
Assembly: MetricSetEmitters.dll
Syntax
public abstract class DirectedAcyclicGraphWriter<T>
    where T : IDirectedAcyclicGraph<T>
Type Parameters
Name Description
T

Constructors

View Source

DirectedAcyclicGraphWriter(StringBuilder, Func<T, String>)

Declaration
public DirectedAcyclicGraphWriter(StringBuilder output, Func<T, string> color)
Parameters
Type Name Description
StringBuilder output
Func<T, String> color

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
Type Description
String
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
Type Description
String
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
Type Description
String

Extension Methods

ObjectExtensions.EventId(Object)
  • View Source
Back to top Generated by DocFX