def root_node(self): """ Gives the root node of this graph. :return: datamodel.base.node.Node instance """ return nx.topological_sort(self._nxgraph, reverse=True)[-1]