hvplot.networkx.draw_networkx#

hvplot.networkx.draw_networkx(G, pos=None, **kwargs)[source]#

Draw a networkx graph.

Draw the graph with hvPlot with options for node positions, labeling, titles, and many other drawing features. See draw() for simple drawing without labels or axes.

Parameters:
Ggraph

A networkx graph

posdictionary, optional

A dictionary with nodes as keys and positions as values or a layout networkx.drawing.layout function. If not specified a spring layout positioning will be computed. See networkx.drawing.layout for functions that compute node positions.

kwargsoptional keywords

See hvplot.networkx.draw() for a description of optional keywords, with the exception of the pos parameter which is not used by this function.

Returns:
graphholoviews.Graph or holoviews.Overlay

Graph element