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