We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 049e465 commit 6950720Copy full SHA for 6950720
1 file changed
src/graph/query.rs
@@ -1034,11 +1034,11 @@ where
1034
}
1035
1036
/**
1037
- Returns the number of nodes in the graph.
+ Returns the number of edges in the graph.
1038
```
1039
use graphrs::{generators};
1040
let graph = generators::social::karate_club_graph();
1041
- assert_eq!(graph.number_of_nodes(), 34);
+ assert_eq!(graph.number_of_edges(), 34);
1042
1043
*/
1044
pub fn number_of_edges(&self) -> usize {
0 commit comments