Group Abstract Group Abstract

Message Boards Message Boards

Visualization of weighted graph

Posted 1 month ago

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.

Attachment

Attachment

POSTED BY: Iuval Clejan
7 Replies
Posted 1 month ago

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.

POSTED BY: Iuval Clejan
Posted 1 month ago

adj seems to be undefined.

POSTED BY: Eric Rimbey
Posted 1 month ago

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.

POSTED BY: Iuval Clejan
Posted 1 month ago

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.

POSTED BY: Eric Rimbey
Posted 1 month ago

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.

POSTED BY: Iuval Clejan
Posted 1 month ago

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.

POSTED BY: Eric Rimbey
Posted 1 month ago

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?

POSTED BY: Iuval Clejan
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard