structify_net.zoo.sort_nestedness

structify_net.zoo.sort_nestedness(nodes)

Rank model based on nestedness

A nestedness network is a particular type of network where the nodes are organized in a hierarchy. Top nodes are connected to bottom nodes. Bottom nodes are connected to other bottom nodes. The order of the pairs is based on the distance between the nodes in the hierarchy.

Args:

nodes (_type_): Describe nodes. Can be either a networkx graph (node names and node attributes are preserved) or an integer (number of nodes)

Returns:

structify_net.Rank_model:: The rank model