structify_net.zoo.sort_fractal_root

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

A rank model based on a fractal structure

The network is embedded in a binary tree. The order of the pairs is based on the distance between the nodes in the tree. Nodes are assigned starting from the root of the 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:: The rank model