Skip to main content

get_node_degrees

Function get_node_degrees 

Source
pub fn get_node_degrees<N, E, Ty>(g: &Graph<N, E, Ty>) -> Vec<usize>
where Ty: EdgeType,
Expand description

Get the degree (number of edges) of each node in an undirected graph.