src/DSGRN/SaveDatabaseJSON.py
def vertex_rank(u):
        """Return how many levels down of children u have."""
        children = [v for v in morse_graph.poset().children(u)]
        if len(children) == 0:
            return 0
        return 1 + max([vertex_rank(v) for v in children])
Return how many levels down of children u have.
Return how many levels down of children u have.
Return how many levels down of children u have .
def vertex_rank(u):
        children = [v for v in morse_graph.poset().children(u)]
        if len(children) == 0:
            return 0
        return 1 + max([vertex_rank(v) for v in children])
def vertex_rank ( u ) : children = [ v for v in morse_graph . poset ( ) . children ( u ) ] if len ( children ) == 0 : return 0 return 1 + max ( [ vertex_rank ( v ) for v in children ] )
Return how many levels down of children u have.
Return how many levels down of children u have .
"""Return how many levels down of children u have."""
u