Class GraphAnalysis

The GraphAnalysis class provides methods and properties to analyze a Graph.

Constructors

Properties

graph: Graph

Methods

  • Creates an exhaustive set of all GraphNode instances that are connected to the input node. Both input pins are outputs are visited.

    Parameters

    Returns Set<ImmutableGraphNode>

    A set of connected GraphNode instances.

  • Detects if the specified node is part of a cycle in the graph.

    Parameters

    Returns boolean

    True if the node is part of a cycle, otherwise false.

  • Determines if the specified node is connected to the root node by traversing the pin input connections.

    Parameters

    Returns boolean

    true if the node is connected to the root, otherwise false.