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)
| 543 | |
| 544 | |
| 545 | def 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 | |
| 568 | def draw_spectral(G, **kwargs): |
nothing calls this directly
no test coverage detected
searching dependent graphs…