First time here? Check out the FAQ!
answered 2016-11-05 17:37:41 +0100
Here is a convenient (however non efficient) way of doing it.
g=graphs.CycleGraph(4) for hp in g.subgraph_search_iterator(graphs.PathGraph(g.num_verts())): print hp
Hope this helps!