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 / 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