Install & Compatibility
Where this runs
tested against v3.4.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.10
✕ build_error
✓ 27.1s
py 3.11
✕ build_error
✓ 26.3s
py 3.12
✕ build_error
✓ 26.6s
py 3.13
✕ build_error
✕ build_error
py 3.9
✕ build_error
✓ 30.5s
802MB installed
● package 802MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
AdjacencySpectralEmbed
✓ from graspologic.embed import AdjacencySpectralEmbed
Standard import path for spectral embedding.
LaplacianSpectralEmbed
✓ from graspologic.embed import LaplacianSpectralEmbed
Standard import path for Laplacian spectral embedding.
GaussianCluster
✓ from graspologic.cluster import GaussianCluster
Standard import path for Gaussian clustering.
graspologic
✓
✗ import graspologic
Top-level import does not expose most functions; you must import submodules.
Quickstart: generate an Erdős–Rényi graph and compute an adjacency spectral embedding.
import numpy as np
from graspologic.embed import AdjacencySpectralEmbed
from graspologic.simulations import er_np
# Generate a random graph
adj = er_np(100, 0.3)
# Embed the adjacency matrix
ase = AdjacencySpectralEmbed(n_components=2)
X = ase.fit_transform(adj)
print(X.shape) # (100, 2)
Upgrade
Version history
3.4.4latest on PyPI · released Sep 8, 2025
Audit
Dependencies
networkxrequiredgraph data structures and algorithms
numpyrequirednumerical computations
scikit-learnrequiredused in clustering and other utilities
hyppooptionalindependence testing (optional for some functions)
POToptionaloptimal transport (optional)