Skip to content

msarrias/SAGD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shape-Aware Graph Distance

Installation

You can install the SAGD package locally in "editable" mode. This allows you to use the library while making changes to the source code without needing to re-install.

Clone the repository

git clone https://github.com/msarrias/SAGD.git
cd SAGD

Install package

pip install -e .

Usage

import numpy as np
from SAGD import SAGD

# Load your adjacency/weight matrices
W1 = np.random.rand(100, 100) 
W2 = np.random.rand(100, 100)

# Calculate distance
distance = SAGD(W1, W2, laplacian_type="unnormalized", norm_type="norm_wrt_avg_ctd")
print(f"SAGD: {distance}")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages