Parameters
• G_to_add_to (graph) – A NetworkX graph

• nodes_for_path (iterable container) – A container of nodes. A path will be constructed from the nodes (in order) and added to the graph.

• attr (keyword arguments, optional (default= no attributes)) – Attributes to add to every edge in path.

>>> G = nx.Graph()