graph.get_node_by_name() takes string arguments.  you're passing it an integer.  is that okay?