completed adding multigraph