Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

snap-stanford/graphwave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spectral Wavelets for learning structural signatures in complex networks

This folder contains the code for GraphWave, an algorithm for computing structural signatures for nodes in a network using heat spectral wavelets.This code folder is organized as follows:

  • shapes/: contains the functions for generating (more or less) regular graphs and shapes
  • performance_evaluation/: functions computing different metrics for assessing the quality of the embeddings generated by GraphWave
  • test_perturbation_synthetic/: set of ipython notebooks for running the syntheticexperiments described in the paper.
  • utils/: set of helper functions
  • files:
    • characteristic_functions.py: functions for computing the characteristic functions.
    • graphwave.py: wrapper function for computing the embeddings.

 

 

Prerequisites

GraphWave was written forPython 2.7 and requires the installation of the following Python libraries:

  • networkx: allows easy manipulation and plotting of graph objects (more information in theNetworkx website).
  • pyemd: module for computing Earth Mover distances (for trying out other distances between diffusion distributions. More information in thepyemd website)

Also, need standard packages:scipy, sklearn, seaborn for analyzing and plotting results.

Note: heat diffusion scaling wavelets can also be computed with the Graph Signal Processing toolboxpygsp (accessible through theEPFL website ), which, beyond structural similarities, has plenty of extremely useful features for handling signals on graphs.

 

 

Running Graphwave

A full example on how to use GraphWave is provided in the ''Using GraphWave.ipynb" of this directory.In a nutshell:

  • input: nx (or pygsp) Graph structure
  • compute the heat wavelets
  • embed the distributions in Euclidean space using the characteristic function
  • output: signatures, which can be used in one's favorite Machine Learning framework.

For a given graphG (of type pygsp or nx),GraphWave structural signatures can be simplycomputing by calling:

>from graphwave import graphwave>chi,heat_print, taus=graphwave_alg(G, 'automatic', verbose=False)

Authors

  • Anonymous at this time

Acknowledgements

We would like to thank the authors ofstruc2vec for theopen access of the implementation of their method, as well asLab41 for its open-access implementation ofRolX.

License

This project is licensed under the MIT License - see theLICENSE.md file for details

=======

graphwave

5d0c25e5cc6baee37b445b1c0d232dc0d7e43e52

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp