generate_graph_structure function

Generate edges and virtual family nodes