Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.87 KB

File metadata and controls

47 lines (33 loc) · 1.87 KB

Graph distance

Calculate distance between graphs. The following distances are supported:

Distance Description
spectral This is the original python sunbeam distance
wasserstein_kde_dist Wasserstein distance between estimated distributions of nonbacktracking eigenvalues
distance_gr_wass Gromov-Wasserstein distance between nonbacktracking eigenvalue vectors

🚀 Running code

Python version >= 3.5

  • Run on your local machine
    • Clone this repository on your local machine. git clone https://github.com/liubaoryol/graph_distance.git
    • Install requirements: pip install -r requirements.txt
    • Open a terminal with the path where you cloned this repository C:Users/desktop/graph_distance$ python
    • Import neuro_umap functions as follows
    >>> from neuro_umap import nbeigs_calculate, distance_gr_wass
    • Example:
    >>> eigs=nbeigs_calculate(graphs,'2D')
    >>> distance_gr_wass(eigs)

References

Motivated on the following articles: