Graphriccicurvature

Latest version: v0.5.3.1

Safety actively analyzes 619516 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.5.3.1

- Update POT api to the latest version.
- Networkx's Karate club graph now comes with edge weight, update tutorial and test for that.
- Forman computation's log can be mute now.

0.5.3

- Switch OTD computation from `cvxpy` to `ot.emd2` since it's way faster (up to 10x) for OTD cases within neighbor counts 2000 x 2000.
- Add a new computation method `OTDSinkhornMix` that uses `ot.emd2` to compute OTD for smaller neighbors (less than `_OTDSinkhorn_threshold=2000` in default setting). This is because Sinkhorn works faster for larger cases, for smaller cases, the iterating process makes it slower than directly compute the `ot.emd2` written in C.
- Update the default `nbr_topk` to be 3000 because of the faster computations.
- Suppressed edge weight to zero message from `warning` to `trace` since the Ricci flow "converges" faster with exact Wasserstein distance.

0.5.2.1

0.5.2

- Reimplement Forman-Ricci curvature for the weighted graph follows the definition in Comparative analysis of two discretizations of Ricci curvature for complex networks.
- Add an example for Forman-Ricci curvature in the tutorial.

0.5.1

- Update to support examples in the tutorial.
- Reformat code.

0.5.0

Add `ricci_community` for auto community detection.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.