Implements GraphNode.