networkx.trivial_graph

networkx.trivial_graph(create_using=None)[source]

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