Visualization of weighted graph

Why doesn’t this work?

FindGraphCommunities[solgraph]

Please see the included pics. I have version 13.3.1.0 of Mathematica Home Edition. The second pic is the weighted adjacency matrix of the graph.


I thought maybe I need to take the inverse (element-wise) of this matrix to get an actual adjacency graph. This works for display purposes, but it’s still not representative of the connection properties. Should I convert it to a non-weighted graph?

I don’t think you’re going to get much engagement on this question if you don’t provide the code/data that generated the graph so that we can reproduce the behavior and analyze it.

OK, here it is. Sometimes it works, sometimes not, depending on the number of nodes at each level. In this case (for this file) it gives a pictorial rep of communities for inverse (element-wise) matrix, but not for matrix itself. Sometimes it gives a text rep of communities for matrix and pictorial rep for inverse.

adj seems to be undefined.

adj is a matrix that has all the variables that are optimized (satisficed actually in this case, pure constraints). After the optimizer finds an optimum, adj is the solution.

Okay, but I can’t run your code. I don’t know what kind of help you’re expecting, but I at least won’t be able to give you an answer without being able to actually inspect your graph and other data.

You mean the code doesn’t run for you? I wonder why? You don’t need other data except what’s in that file to generate the graphs.