diff --git a/src/graph/query.rs b/src/graph/query.rs index 4820bdc..99bf91a 100644 --- a/src/graph/query.rs +++ b/src/graph/query.rs @@ -1034,11 +1034,11 @@ where } /** - Returns the number of nodes in the graph. + Returns the number of edges in the graph. ``` use graphrs::{generators}; let graph = generators::social::karate_club_graph(); - assert_eq!(graph.number_of_nodes(), 34); + assert_eq!(graph.number_of_edges(), 34); ``` */ pub fn number_of_edges(&self) -> usize {