graph_compute_degree_matrix
graph_compute_degree_matrix(graph, result, node_indices)
Builds a matrix with node cardinality for each Node, that is, number of edges attached to each Node NOTE: does not clear matrix before writing
Kind: global function
| Param | Type | Description |
|---|---|---|
| graph | Graph.<T> | |
| result | SquareMatrix | Where to store the result |
| node_indices | Map.<T, number> | de-referencing dictionary from Node to unsigned integer index |