Skip to main content
IBM Quantum Platform
翻訳情報

このページの追加言語翻訳は近日公開予定です。

find_unreachable_nodes

samplomatic.graph_utils.find_unreachable_nodes(graph: PyDiGraph, start_idxs: Sequence[int]) → set[int]

GitHub

Find all nodes from the graph that are not reachable from the start nodes.

Parameters

  • graph – The graph to search.
  • start_idxs – The node indices to start from.

Returns

A set of the unreachable node indices.

このページは役に立ちましたか?
バグや誤字の報告、またはコンテンツの要求はGitHubで行ってください。