• Retrieves the component of a given node in a graph using breadth-first search. Returns nodes that are in the same subgraph component as the given node.

    Parameters

    • graph: default<Attributes, Attributes, Attributes>

      The graph to search in.

    • node: string

      The node to find the component for.

    • options: {
          neighborStrategy?: ForEachNeighborMethods;
      } = {}

      Optional parameters for customizing the search behavior.

    Returns string[]

    Returns nodes that are in the same subgraph component as the given node.

Generated using TypeDoc