structify_net.zoo.sort_fractal_hierarchical

structify_net.zoo.sort_fractal_hierarchical(nodes, d=3)

Rank model based on a fractal structure

This structure is designed to maximize the hierarchical structure of the network. The network is embedded in a binary tree. The order of the pairs is based on two factors: the distance between nodes in the tree at a same hierarchical level and the distance between the hierarchical levels.

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 3. 3 allows to have many triangles.

Returns:

structify_net.Rank_model:: The rank model