Later in the code, I want to construct another fGgraph object with a different filter -- say filter2. I would like to do this without explicitly creating a new fGraph object, i.e. I would like to avoid writing
fGraph fG2(G, keep_all(), filter2);
Rather than that, I would like to overwrite fG: I tried
Thank you for your reply. How about using copy_graph?
copy_graph(fG,fGraph(G, keep_all(), filter2));
I have tried but it doesn't compile... The copy_graph command works fine for non filtered graph, but it doesn't work for filtered graph: I don't know how to copy a filtered graph.