fixed behavior of Graph.get_node