map list to graph