Class Node<TNodeValue, TEdgeLabel>
Represents a labeled node in a directed graph.
Inherited Members
Namespace: Bonsai.Dag
Assembly: Bonsai.Core.dll
Syntax
public class Node<TNodeValue, TEdgeLabel>
Type Parameters
Name | Description |
---|---|
TNodeValue | The type of the labels associated with graph nodes. |
TEdgeLabel | The type of the labels associated with graph edges. |
Constructors
| Improve this Doc View SourceNode(TNodeValue)
Initializes a new instance of the Node<TNodeValue, TEdgeLabel> class with
the specified value
.
Declaration
public Node(TNodeValue value)
Parameters
Type | Name | Description |
---|---|---|
TNodeValue | value | The value of the node label. |
Properties
| Improve this Doc View SourceSuccessors
Gets the collection of successor edges leaving this node.
Declaration
public EdgeCollection<TNodeValue, TEdgeLabel> Successors { get; }
Property Value
Type | Description |
---|---|
EdgeCollection<TNodeValue, TEdgeLabel> |
Value
Gets the value of the node label.
Declaration
public TNodeValue Value { get; }
Property Value
Type | Description |
---|---|
TNodeValue |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |