Save subgraphs to files