effective-distance

Generates a radial layout for trees whose nodes are associated with a distance to the root.


License
MIT
Install
pip install effective-distance

Documentation

Effective Distance

Computes the effective distance between nodes in a weighted directed graph as declared in [1] or even the whole tree for a given root node. Subsequently the tree can be plotted with the (radial-distance-layout)[https://github.com/benmaier/radial-distance-layout] package.

[1] The Hidden Geometry of Complex, Network-Driven Contagion Phenomena, D Brockmann, D Helbing, Science Vol. 342, Issue 6164, pp. 1337-1342 (2013)

Install

$ sudo python setup.py install

Usage

>>> import effdist