I have a Graph
, and I want to group some of its vertices into communities. CommunityGraphPlot
uses force directed layout and its doesn't look like the original graph after I apply CommunityGraphPlot
. I don't want the vertices of same community to come close so that the community border line can be drawn easily. I want the vertices to stay in their position as it was in the graph. Just drawing even some rectangles or any other shape over them will be fine for me.
CompleteGraph[8, VertexLabels -> "Name"]
CommunityGraphPlot[
CompleteGraph[8,
VertexLabels -> "Name"], {{1, 2, 3}, {4, 5}, {4, 8}}]
Given that complete graph above, CommunityGraphPlot
just breaks its beauty, It doesn't even look like once its was a complete graph. However with these set of vertices it could have draw regions easily while keeping the vertices in their position.