Message Boards Message Boards

0
|
2779 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

How to put Frame or borders around subgraphs in single Graph?

Posted 4 years ago

POSTED BY: Richard Frost
2 Replies
Posted 4 years ago

I'm between meetings right now, but this one caught my eye. I think the answer lies in figuring out what the coordinates of each node. Then you should be able to draw a polygon around the set of nodes that you want.

Check out GraphEmbedding[].

If I get a chance, I'll try to work through this later this week.

POSTED BY: Mike Besso

Thanks Mike, That's definitely a solution. I assigned the final graph above to "bigg" and reproduced the graph using GraphEmbedding[] coordinates:

vList = VertexList[bigg];
vCount = Length[vList];
vCoords = GraphEmbedding[bigg];
labeledPoints = Table[Labeled[vCoords[[n]], vList[[n]]], {n, 1, vCount}];
ListPlot[labeledPoints]

enter image description here

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

Group Abstract Group Abstract