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에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.