GH_ConnectivityDiagram

References
Represents a complete connectivity diagram (topology) of a GH_Document. A connectivity diagram is basically an undirected network of all the wires in a document.

Constructors

GH_ConnectivityDiagram

#
public GH_ConnectivityDiagram(GH_ConnectivityDiagram other)
Create a duplicate of another Connectivity Diagram.
other (GH_ConnectivityDiagram)Diagram to copy.

GH_ConnectivityDiagram

#
public GH_ConnectivityDiagram(GH_Document doc)
Create a new Connectivity Diagram from a GH_Document.
doc (GH_Document)Document to examine.

Properties

NodeCount

#
public int NodeCount { get; }
Gets the number of connectivity nodes in this diagram.

Nodes

#
public ReadOnlyCollection<Guid> Nodes { get; }
Gets a proxy for all the Nodes in this diagram.

Indexers

Node

#
public GH_ConnectivityNode this[Guid id] { get; }
Get the connectivity node with the specified ID.
id (Guid)ID of node to search for.
The node on success or null on failure.

Methods

ContainsID

#
public bool ContainsID(Guid id)
Test the diagram for a given Node ID.
id (Guid)ID to search for.
True if the ID is part of this diagram, false if otherwise.

GetAllInputs

#
public List<Guid> GetAllInputs(Guid id)
Get all the Nodes that are part of the specified node input.
id (Guid)ID of node to query.
A list of input nodes.

GetAllOutputs

#
public List<Guid> GetAllOutputs(Guid id)
Get all the Nodes that are part of the specified node output.
id (Guid)ID of node to query.
A list of output nodes.