issue_tree
    Preparing search index...

    Function filterGraph

    • Apply scope and metadata filters to a graph, returning a new sub-Graph.

      Order: the metadata filters (repo/label/milestone/state) narrow the node set first; then scope widens or trims it — open keeps open nodes plus the closed endpoints of surviving edges, connected drops isolated nodes, all keeps everything. Any edge with a dropped endpoint is dropped.

      Parameters

      Returns Graph

      a new filtered Graph with refreshed counts and meta.filtersApplied

      filterGraph(graph, { scope: 'open', label: ['bug'] }).nodes.length
      // => count of open bug issues plus their kept-edge endpoints