merge
Graph constructor