Added the option to create a graph with names mapping to each node.