Skip to content

Commit 6950720

Browse files
authored
Update documentation for number of edges (#10)
The documentation for `Graph.number_of_edges` incorrectly referred to `Graph.number_of_nodes`.
1 parent 049e465 commit 6950720

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/graph/query.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,11 +1034,11 @@ where
10341034
}
10351035

10361036
/**
1037-
Returns the number of nodes in the graph.
1037+
Returns the number of edges in the graph.
10381038
```
10391039
use graphrs::{generators};
10401040
let graph = generators::social::karate_club_graph();
1041-
assert_eq!(graph.number_of_nodes(), 34);
1041+
assert_eq!(graph.number_of_edges(), 34);
10421042
```
10431043
*/
10441044
pub fn number_of_edges(&self) -> usize {

0 commit comments

Comments
 (0)