# graphology/graphology

A robust & multipurpose Graph object for JavaScript & TypeScript.

Repository: https://github.com/graphology/graphology
Canonical: https://ross.abutalabs.com/products/graphology
Homepage: https://graphology.github.io
Language: JavaScript
License: MIT
License Family: permissive
Topics: graph
Last push: 2026-07-21T07:58:52+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 8, longevity 100
- inputs: {"age_days": 3661, "days_push": 43, "days_rel": 571, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1734, forks 116 (observed 2026-08-28T04:05:28.972142+00:00)

## What it is
Graphology is a robust, multipurpose Graph data structure library for JavaScript and TypeScript supporting directed, undirected, mixed, simple, and multigraph variants under a unified interface. It ships with a standard library of graph theory algorithms, generators, layouts, and traversals, and emits events that make it suitable as a data backend for interactive renderers like sigma.js.

## Use cases
- model directed, undirected, or mixed graphs in JavaScript or TypeScript
- run graph theory algorithms like centrality, community detection, or traversals
- generate and manipulate network data for visualization with sigma.js
- build interactive graph renderers in the browser using graph events
- work with multigraphs and self-loops in a unified data structure
- compute graph metrics such as density or modularity
- serialize and transform network datasets in Node.js

## When to choose
- you need a general-purpose graph data structure in JS/TS with a rich algorithm library
- you are building network visualizations, especially with sigma.js
- you need flexible graph variants (directed, mixed, multigraph) in one interface
- you want event-emitting graphs for interactive applications

## When to avoid
- you need high-performance graph processing on massive graphs better suited to native or GPU-backed tools
- you only need simple adjacency lists without algorithms or events
- you work primarily in Python or another non-JS ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: data-visualization, developer-tools
- domain: graph-processing, web-development, data-visualization
- platform: browser
- tags: graph-theory, graph-data-structure, network-analysis, directed-graphs, undirected-graphs, multigraph, graph-algorithms, sigma-js, algorithms, nodejs, javascript, typescript

## Member repositories
- graphology/graphology (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:28.972142+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:31:04.571851+00:00, confidence not recorded.
  - readme: https://github.com/graphology/graphology (fetched 2026-08-28T04:05:28.972142+00:00, sha 4eb614741e1d)
  - homepage: https://graphology.github.io (fetched 2026-08-29T11:08:26.032715+00:00, sha 3f8debf93af8)
  - registry_npm: https://registry.npmjs.org/graphology (fetched 2026-08-29T11:08:26.042133+00:00, sha 31e3d52d6664)
- Data as of 2026-08-30T08:39:29.467469+00:00.
