@property
def level(self):
    'Return the number of parents this DAG node has\n\n        Example:\n            >>> parent = createNode("transform")\n            >>> child = createNode("transform", parent=parent)\n            >>> child.level\n            1\n            >>> parent.level\n            0\n\n        '
    return (self.path().count('|') - 1)
Return the number of parents this DAG node has

Example:
    >>> parent = createNode("transform")
    >>> child = createNode("transform", parent=parent)
    >>> child.level
    1
    >>> parent.level
    0
@property
def level(self):
    'Return the number of parents this DAG node has\n\n        Example:\n            >>> parent = createNode("transform")\n            >>> child = createNode("transform", parent=parent)\n            >>> child.level\n            1\n            >>> parent.level\n            0\n\n        '
    return (self.path().count('|') - 1)