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で行ってください。