Skip to main content
IBM Quantum Platform
번역 정보

이 페이지의 추가 언어 번역이 곧 제공될 예정입니다.

replace_edges_with_one_edge

samplomatic.graph_utils.replace_edges_with_one_edge(graph: PyDiGraph[T, S], parent_idx: int, child_idx: int, new_edge: S) → int

GitHub

Replace all the parallel edges between two nodes with a single edge.

Parameters

  • graph – The graph to mutate.
  • parent_idx – The index of the parent node.
  • child_idx – The index of the child node.
  • new_edge – The new edge.

Returns

The indices of the new edges.

이 페이지가 도움이 되었습니까?
GitHub에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.