Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

networkx.generators.classic.trivial_graph

trivial_graph(create_using=None)[source]

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