Create sparse graph from matrix

158 Views Asked by At

I have a large but sparse graph that I want to display with MuPAD. The graph is denoted in Matlab as a sparse squared matrix of edge weights.

When using Graph::createGraphFromMatrix(m), I am unable to create anything but fully connected graphs. I tried with values of 0, NaN/undefined and Inf for missing edges, but that only changed the weight of the resulting edges, but did not make them disappear.

0

There are 0 best solutions below