Skip to content

Commit

Permalink
docstring fix for graph.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
abhamra committed Oct 4, 2023
1 parent e060bd7 commit 8441cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,14 +368,14 @@ impl PyGraph {
false
}

/// Remove all nodes and edges
/// Clears all nodes and edges
#[pyo3(text_signature = "(self)")]
pub fn clear(&mut self) {
self.graph.clear();
self.node_removed = true;
}

/// Remove all edges
/// Clears all edges, leaves nodes intact
#[pyo3(text_signature = "(self)")]
pub fn clear_edges(&mut self) {
self.graph.clear_edges();
Expand Down

0 comments on commit 8441cb0

Please sign in to comment.