Skip to content

yifan0sun/GraphSpectrumViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Graph Spectral Visualizer

A web-based interactive tool to explore graph structure through spectral embeddings and eigenvalue analysis.

Live Demo: yifan0sun.github.io/GraphSpectrumViewer


🌟 Overview

Graph Spectral Visualizer helps users build graphs and analyze their structural properties using spectral graph theory. By computing the eigenvalues and eigenvectors of key matrices (adjacency, Laplacian, and normalized Laplacian), this tool reveals clusters, bottlenecks, and latent geometry.


πŸ›  Features

🎨 Graph Editor (left panel)

Use the buttons to construct your graph:

  • Add Node: Creates a new node near the last node.
  • Delete Node: Removes the selected node and all its edges.
  • Select Edge: Click an edge to highlight it.
  • Delete Edge: Removes the selected edge.
  • Recompute: Computes spectrum and eigenvectors for all three matrices.

πŸ“ˆ Spectrum & Embedding (right panel)

Tabs allow you to:

  • View eigenvalue spectra for the selected matrix.
  • Plot node embeddings using selected eigenvectors (e.g. eigenvector 1 vs 2).
  • Switch matrix type between adjacency, Laplacian, and normalized Laplacian.

Use the input boxes to select which eigenvectors to plot (1 = largest or smallest depending on matrix).


βš™οΈ Technical Stack

  • Frontend: React + Plotly.js + TypeScript
  • Backend: FastAPI (Python), NumPy for eigendecomposition
  • Hosting: GitHub Pages (frontend), Render (backend)

πŸ”¬ Limitations

  • Currently supports unweighted undirected graphs.
  • No layout or clustering algorithms β€” embeddings rely solely on eigenvectors.

πŸ“¬ Contact

Built by Yifan Sun Email: yifan dot sun at stonybrook dot edu Website: optimalvisualizer.com


πŸš€ Feedback & Contributions

If you spot a bug or have ideas, submit an issue or suggestion at the repo. This is an evolving research tool β€” feedback is always welcome!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published