MCPcopy Create free account
hub / github.com/holoviz/hvplot / draw_shell

Function draw_shell

hvplot/networkx.py:545–565  ·  view source on GitHub ↗

Draw networkx graph with shell layout. Parameters ---------- G : graph A networkx graph kwargs : optional keywords See hvplot.networkx.draw() for a description of optional keywords, with the exception of the pos parameter which is not used by this functio

(G, **kwargs)

Source from the content-addressed store, hash-verified

543
544
545def draw_shell(G, **kwargs):
546 """Draw networkx graph with shell layout.
547
548 Parameters
549 ----------
550 G : graph
551 A networkx graph
552 kwargs : optional keywords
553 See hvplot.networkx.draw() for a description of optional
554 keywords, with the exception of the pos parameter which is not
555 used by this function.
556
557 Returns
558 -------
559 graph : holoviews.Graph or holoviews.Overlay
560 Graph element or Graph and Labels
561 """
562 nlist = kwargs.pop('nlist', None)
563 if nlist is not None:
564 kwargs['layout_kwargs'] = {'nlist': nlist}
565 return draw(G, nx.shell_layout, **kwargs)
566
567
568def draw_spectral(G, **kwargs):

Callers

nothing calls this directly

Calls 1

drawFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…