
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
NetLSD descriptors for graphs. Compare and analyze graph structure on multiple levels!
Supply Chain Security
Vulnerability
Quality
Maintenance
License
NetLSD is a family of spectral graph descriptros. Given a graph, NetLSD computes a low-dimensional vector representation that can be used for different tasks.
.. code-block:: python
import netlsd
import networkx as nx
g = nx.erdos_renyi_graph(100, 0.01) # create a random graph with 100 nodes
descriptor = netlsd.heat(g) # compute the signature
That's it! Then, signatures of two graphs can be compared easily. NetLSD supports networkx <http://networkx.github.io/>
, graph_tool <https://graph-tool.skewed.de/>
, and igraph <http://igraph.org/python/>
_ packages natively.
.. code-block:: python
import netlsd
import numpy as np
distance = netlsd.compare(desc1, desc2) # compare the signatures using l2 distance
distance = np.linalg.norm(desc1 - desc2) # equivalent
For more advanced usage, check out online documentation <http://netlsd.readthedocs.org/>
_.
#. cd netlsd #. pip install -r requirements.txt #. python setup.py install
Or simply pip install netlsd
If you find NetLSD useful in your research, we ask that you cite the following paper::
@inproceedings{Tsitsulin:2018:KDD,
author={Tsitsulin, Anton and Mottin, Davide and Karras, Panagiotis and Bronstein, Alex and M{\"u}ller, Emmanuel},
title={NetLSD: Hearing the Shape of a Graph},
booktitle = {Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining},
series = {KDD '18},
year = {2018},
}
NetLSD - Hearing the shape of graphs.
FAQs
NetLSD descriptors for graphs. Compare and analyze graph structure on multiple levels!
We found that NetLSD demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.