Small speed increase when parsing nodes and adding them to the graph.