Check if a Node has at least one Relation to it, but none from it.
@override bool nodeIsLeaf(String nodeId) { return _select( 'relations', where: 'fromNodeId = ?', whereArgs: [nodeId], ).isEmpty; }