DirectedGraph map
undirected graph map
moving old code out of core