@@ -127,6 +127,19 @@ locs_x, locs_y = shell_layout(g, nlist)
127127gplot (g, locs_x, locs_y, nodelabel= nodelabel)
128128``` 
129129
130+ ### stress majorize layout  
131+ ``` julia 
132+ gplot (g, layout= stressmajorize_layout)
133+ ``` 
134+ 
135+ ### community layout  
136+ ``` julia 
137+ community_id =  rand (1 : 3 , nv (g)) # membership for each node
138+ node_c =  [colorant "" colorant "" colorant "" # colors for each community
139+ locs_x, locs_y =  community_layout (g,community_id)
140+ gplot (g, locs_x, locs_y, nodefillc =  node_c[community_id])
141+ ``` 
142+ 
130143## Curve edge  
131144``` julia 
132145gplot (g, linetype= :curve )
@@ -159,7 +172,7 @@ gplot(h)
159172+  ` locs_x, locs_y `  Locations of the nodes (will be normalized and centered). If not specified, will be obtained from ` layout `  kwarg.
160173
161174# Keyword Arguments  
162- +  ` layout `  Layout algorithm: ` random_layout ` , ` circular_layout ` , ` spring_layout ` , ` shell_layout ` , ` stressmajorize_layout ` , ` spectral_layout ` . Default: ` spring_layout ` 
175+ +  ` layout `  Layout algorithm: ` random_layout ` , ` circular_layout ` , ` spring_layout ` , ` shell_layout ` , ` stressmajorize_layout ` , ` spectral_layout ` ,  ` community_layout ` . Default: ` spring_layout ` 
163176+  ` max_nodesize `  Max size for the nodes. Default: ` 3.0/sqrt(N) ` 
164177+  ` nodesize `  Relative size for the nodes, can be a Vector. Default: ` 1.0 ` 
165178+  ` nodelabel `  Labels for the vertices, a Vector or nothing. Default: ` nothing ` 
0 commit comments