higra / Higra

Hierarchical Graph Analysis
Other
97 stars 20 forks source link

Dasgupta metric for similarity measures #247

Closed PerretB closed 1 year ago

PerretB commented 1 year ago

The Dasgupta cost function https://higra.readthedocs.io/en/stable/python/hierarchical_cost.html#higra.dasgupta_cost currently assumes that edge weights are dissimilarities and does not handle zero weights (division by zero): add option to treat edge weights as similarities