

def get_root_node(self):
    ' Get root node if exists, other ``None``. '
    node_id = core.get_root_node(self.cursor).id
    return self.node_factory(self, node_id)

dataset/ETHPy150Open conceptsandtraining/libtree/libtree/transaction.py Transaction.get_root_node/original