Skip to content

Commit

Permalink
Update load_from_networkx docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarhiggott committed Sep 5, 2021
1 parent e4fa28b commit c13980b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pymatching/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def add_edge(
error_probability, has_error_probability)

def load_from_networkx(self, graph: nx.Graph) -> None:
r"""
"""
Load a matching graph from a NetworkX graph
Parameters
Expand Down Expand Up @@ -412,7 +412,6 @@ def set_boundary_nodes(self, nodes: Set[int]) -> None:
{0, 2}
>>> m
<pymatching.Matching object with 0 qubits, 1 detector, 2 boundary nodes, and 2 edges>
"""
self.matching_graph.set_boundary(nodes)

Expand Down

0 comments on commit c13980b

Please sign in to comment.