Represents a link between two nodes in a directed graph.
sealed class
|
GraphLink
|
with
|
<TNode>
|
||
implements
|
IDeletable
|
The source node of this link.
public
property
|
Source
{
get
}
|
||
type
|
GraphNode<TNode>
|
||
value
|
|
The source node. |
The target node of this link.
public
property
|
Target
{
get
}
|
||
type
|
GraphNode<TNode>
|
||
value
|
|
The target node. |
The link weight.
public
property
|
Weight
{
get
set
}
|
||
type
|
float64
|
||
value
|
|
The link weight. |
Remarks:
The
default
value
is
1
.
Deletes this object immediately.
public
method
|
Delete
()
|
||
implements
|
IDeletable.Delete
|
Remarks:
Deletion is considered to be a notification that the object is no longer used. The implementation is then free to perform cleanup or pooling actions.
Using an object after Delete has been called will yield undefined results. The code that calls Delete must make sure that there are no shared usages of the object that is being deleted.