You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add flags multigraph and selfloops to read_edge_list methods (#1526)
* add flags mutligraph and selfloops to read_edge_list
* Apply suggestions from code review
* Use macos-15-intel to unblock CI
---------
Co-authored-by: Ivan Carvalho <[email protected]>
Co-authored-by: Ivan Carvalho <[email protected]>
Adds the flags ``multigraph`` and ``allow_self_loops`` to the ``read_edge_list`` methods of :class:`rustwork.PyGraph` and :class:`rustworkx.PyDiGraph`.
5
+
When the flag ``multigraph`` is set to ``False``, no parallel edge is created, but the edge weight is updated.
6
+
The edge weight is the last one found in the edge list file.
7
+
When flag ``allow_self_loops` is set to ``False``, the self-loops in the edge list file are ignored.
0 commit comments