{"id":13522365,"url":"https://github.com/graphology/graphology","last_synced_at":"2025-05-13T00:04:08.052Z","repository":{"id":38375634,"uuid":"66482976","full_name":"graphology/graphology","owner":"graphology","description":"A robust \u0026 multipurpose Graph object for JavaScript \u0026 TypeScript.","archived":false,"fork":false,"pushed_at":"2025-03-10T10:42:58.000Z","size":7761,"stargazers_count":1438,"open_issues_count":83,"forks_count":95,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-05-13T00:03:57.571Z","etag":null,"topics":["graph"],"latest_commit_sha":null,"homepage":"https://graphology.github.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graphology.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":".zenodo.json"},"funding":{"github":"Yomguithereal"}},"created_at":"2016-08-24T16:59:27.000Z","updated_at":"2025-05-09T01:42:36.000Z","dependencies_parsed_at":"2023-11-06T09:40:13.149Z","dependency_job_id":"3a741119-3df3-4a23-a591-a15d92ca9c13","html_url":"https://github.com/graphology/graphology","commit_stats":{"total_commits":1247,"total_committers":18,"mean_commits":69.27777777777777,"dds":"0.020850040096230926","last_synced_commit":"708856badeb6161ff949af47de4143db889fee46"},"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphology%2Fgraphology","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphology%2Fgraphology/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphology%2Fgraphology/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphology%2Fgraphology/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphology","download_url":"https://codeload.github.com/graphology/graphology/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253843207,"owners_count":21972873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graph"],"created_at":"2024-08-01T06:00:46.144Z","updated_at":"2025-05-13T00:04:07.985Z","avatar_url":"https://github.com/graphology.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Yomguithereal"],"categories":["Javascript Libraries","JavaScript","Model","React Native","Uncategorized"],"sub_categories":["Graph Utilities","Misc","Uncategorized"],"readme":"[![Build Status](https://github.com/graphology/graphology/workflows/Tests/badge.svg)](https://github.com/graphology/graphology/actions) [![DOI](https://zenodo.org/badge/66482976.svg)](https://zenodo.org/badge/latestdoi/66482976)\n\n# Graphology\n\n`graphology` is a robust \u0026 multipurpose `Graph` object for JavaScript and TypeScript.\n\nIt aims at supporting various kinds of graphs with the same unified interface.\n\nA `graphology` graph can therefore be directed, undirected or mixed, allow self-loops or not, and can be simple or support parallel edges.\n\nAlong with this `Graph` object, one will also find a comprehensive [standard library](https://graphology.github.io/standard-library/) full of graph theory algorithms and common utilities such as graph generators, layouts, traversals etc.\n\nFinally, `graphology` graphs are able to emit a wide variety of [events](https://graphology.github.io/events), which makes them ideal to build interactive renderers for the browser. It is for instance used by [sigma.js](https://www.sigmajs.org/) as its data backend.\n\n## Installation\n\nTo install `graphology` using npm, run the following command:\n\n```\nnpm install graphology\n```\n\n*Legacy bundle*\n\nStandalone builds of `graphology` and its full standard library can be found in the repository's [releases](https://github.com/graphology/graphology/releases) if you can only rely on your own `script` tags to load code.\n\n```html\n\u003c!-- To use a Graph object --\u003e\n\u003cscript src=\"graphology.min.js\"\u003e\u003c/script\u003e\n\u003c!-- This exposes a global variable named \"graphology\" --\u003e\n\u003cscript\u003e\n  const graph = new graphology.Graph();\n\n  const {UndirectedGraph, DirectedGraph} = graphology;\n\u003c/script\u003e\n\n\u003c!-- To use the standard library --\u003e\n\u003cscript src=\"graphology-library.min.js\"\u003e\u003c/script\u003e\n\u003c!-- This exposes a global variable named \"graphologyLibrary\" --\u003e\n\u003cscript\u003e\n  const density = graphologyLibrary.metrics.graph.density(graph);\n\u003c/script\u003e\n```\n\nBe warned that the standard library bundle often lags behind and is not always completely up to date.\n\n*TypeScript usage*\n\nNote that `graphology` also exports type declaration that are installed along using peer dependencies so it can be used with [TypeScript](https://www.typescriptlang.org/) out of the box.\n\nIf your version of npm is a bit old, you may need to install `graphology-types` yourself if the peer dependency resolution is not made for you already:\n\n```\nnpm install graphology-types\n```\n\nIt can also be useful to pin `graphology-types` version in your `package.json` to avoid resolution issues sometimes.\n\n## How to cite\n\n`graphology` is published on [Zenodo](https://zenodo.org/) as [![DOI](https://zenodo.org/badge/66482976.svg)](https://zenodo.org/badge/latestdoi/66482976)\n\nYou can cite it thusly:\n\n\u003e Guillaume Plique. (2021). Graphology, a robust and multipurpose Graph object for JavaScript. Zenodo. https://doi.org/10.5281/zenodo.5681257\n\n## Changelog\n\nA complete changelog can be found [here](https://github.com/graphology/graphology/blob/master/CHANGELOG.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphology%2Fgraphology","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphology%2Fgraphology","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphology%2Fgraphology/lists"}