trivial_graph#

trivial_graph(create_using=None)[source]#

Return the Trivial graph with one node (with label 0) and no edges.

(Source code, png)

../../_images/networkx-generators-classic-trivial_graph-1.png

Additional backends implement this function

cugraph : GPU-accelerated backend.