connected map to graph