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

Function draw_random

hvplot/networkx.py:525–542  ·  view source on GitHub ↗

Draw networkx graph with random 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 functi

(G, **kwargs)

Source from the content-addressed store, hash-verified

523
524
525def draw_random(G, **kwargs):
526 """Draw networkx graph with random layout.
527
528 Parameters
529 ----------
530 G : graph
531 A networkx graph
532 kwargs : optional keywords
533 See hvplot.networkx.draw() for a description of optional
534 keywords, with the exception of the pos parameter which is not
535 used by this function.
536
537 Returns
538 -------
539 graph : holoviews.Graph or holoviews.Overlay
540 Graph element
541 """
542 return draw(G, nx.random_layout, **kwargs)
543
544
545def draw_shell(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…