Skip to main content

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

ParamTypeDescription
graphGraph.<T>
resultSquareMatrixWhere to store the result
node_indicesMap.<T, number>de-referencing dictionary from Node to unsigned integer index