Return true if the graph has the given node index.
bool hasNode(int index ) { return _nodes.containsKey( index ); }