107 108 109
# File 'lib/networkx/graph.rb', line 107 def add_path(paths) paths.each_cons(2){|x, y| add_edge(x, y) } end