combine_graphs function

Combine two graphs into a single graph