Open dsludwig opened 6 years ago
As a workaround it is possible to use the layout_nodes operation:
G = nx.bipartite.gnmk_random_graph(3, 5, 10, seed=123)
top = nx.bipartite.sets(G)[0]
graph = hv.Graph.from_networkx(G, layout_function=nx.circular_layout)
hv.element.graphs.layout_nodes(graph, layout=nx.layout.bipartite_layout, kwargs={'nodes': top})
The
nodes
argument tofrom_networkx
shadows thenodes
argument tobipartite_layout
, so the keyword argument is not forwarded to the layout function.http://holoviews.org/Reference_Manual/holoviews.element.html#holoviews.element.Graph.from_networkx
https://networkx.github.io/documentation/latest/reference/generated/networkx.drawing.layout.bipartite_layout.html