structify_net.zoo.sort_fractal_leaves

structify_net.zoo.sort_fractal_leaves(nodes, d=2)

A rank model based on a fractal structure

The order of the pairs is based on the distance between the leaves of a binary tree. The number of leaves is the number of nodes in the network. The distance between two leaves is the number of edges between them in the binary tree.

Args:

nodes (_type_): Describe nodes. Can be either a networkx graph (node names and node attributes are preserved) or an integer (number of nodes) d (int, optional): Degree of the binary tree. Defaults to 2.

Returns:

structify_net.Rank_model:: A rank model