Graph
Description
- Derived from
-
Disposable abstract
A directed graph (i.e. a set of nodes that are connected with directional links).
Graph nodes are represented by GraphNode objects and carry an immutable user-defined object (see GraphNode.Value).
Graph links are represented by GraphLink objects and carry a mutable user-defined weight value (see GraphLink.Weight).
Public / Methods
Link
2 overloads
Adds a link to the graph.
The link weight will be set to weight opt. The given source in and target in nodes will be added to the graph via Node.
- See also
Adds a link to the graph.
The link weight will be adjusted according to weightMin in and weightMax in. The given source in and target in nodes will be added to the graph via Node.
- See also
LinkNull
Returns an existing link in the graph.
This method will not modify the weight of existing links (see GraphLink.Weight). The given source in and target in nodes are retrieved via NodeNull.
- See also
Public / Attributes
Links
Returns the graph links.
The enumeration order of the links in the returned bag is not necessarily the same as the order in which they have been added to the graph.
Nodes
Returns the graph nodes.
The enumeration order of the nodes in the returned bag is not necessarily the same as the order in which they have been added to the graph.
- See also
SinkNodes
Returns the graph sink nodes (i.e. nodes with no outgoing links).
The enumeration order of the nodes in the returned bag is not necessarily the same as the order in which they have been added to the graph.
- See also