Add all the edges in ebunch.
Parameters: | ebunch : list or container of edges
|
---|
See also
Examples
>>> G=nx.DiGraph()
>>> G.add_edges_from([(0,1),(1,2)]) # using a list of edge tuples
>>> e=zip(range(0,3),range(1,4))
>>> G.add_edges_from(e) # Add the path graph 0-1-2-3