I wonder if there is a way to make graphs in a faster way, without creating all the intermediate graphs. Ie, build up the hash maps first and then create the graphs.