networkx.path_graph
networkx.trivial_graph
Enter search terms or a module, class or function name.
Node labels are the integers 0 to n.