circular_layout¶
-
circular_layout
(G, dim=2, scale=1.0, center=None)[source]¶ Position nodes on a circle.
Parameters: Returns: A dictionary of positions keyed by node
Return type: Examples
>>> G=nx.path_graph(4) >>> pos=nx.circular_layout(G)
Notes
This algorithm currently only works in two dimensions and does not try to minimize edge crossings.