Graph Renderer , from_networkx

Hi,

I try to use bokeh for graph visualisation , and I creat a layout function ( not from networkx) , I try to use this function in :

graph_renderer = from_networkx(G,circular_layout )

It works with networkx 1.11 but when I upgrade the networkX to 2.0 , It didn’t work.

Could I use the custom layout function for from_networkx renderer layout argument or It should be nx.layout?

Hi,

NetworkX made breaking API changes in the jump to 2.0, that required other libraries such as Bokeh to update and accommodate. The necessary updates should have been implemented in

  https://github.com/bokeh/bokeh/pull/6972

Which was merged as part of Bokeh 0.12.10. So the first suggestion is to make sure your Bokeh version is up to date. If you still see problems with Bokeh 0.12.10 then please file a bug report on GitHub.

Thanks,

Bryan

···

On Oct 26, 2017, at 14:52, [email protected] wrote:

Hi,

I try to use bokeh for graph visualisation , and I creat a layout function ( not from networkx) , I try to use this function in :

graph_renderer = from_networkx(G,circular_layout )

It works with networkx 1.11 but when I upgrade the networkX to 2.0 , It didn't work.
Could I use the custom layout function for from_networkx renderer layout argument or It should be nx.layout?

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/e63e29c1-7f3a-40b1-9963-9d20e74d7e65%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.