{"id":21558803,"url":"https://github.com/jledentu/konigsberg","last_synced_at":"2025-10-24T14:09:17.668Z","repository":{"id":58238598,"uuid":"82832041","full_name":"jledentu/konigsberg","owner":"jledentu","description":"A browser/Node.js library for manipulating graphs and executing graph theory algorithms","archived":false,"fork":false,"pushed_at":"2017-04-19T15:03:31.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T06:06:08.562Z","etag":null,"topics":["edges","graphs","shortest-paths","vertices"],"latest_commit_sha":null,"homepage":null,"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/jledentu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-22T17:17:10.000Z","updated_at":"2017-03-29T15:27:01.000Z","dependencies_parsed_at":"2022-08-31T00:30:45.020Z","dependency_job_id":null,"html_url":"https://github.com/jledentu/konigsberg","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jledentu/konigsberg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jledentu%2Fkonigsberg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jledentu%2Fkonigsberg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jledentu%2Fkonigsberg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jledentu%2Fkonigsberg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jledentu","download_url":"https://codeload.github.com/jledentu/konigsberg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jledentu%2Fkonigsberg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264780916,"owners_count":23662744,"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":["edges","graphs","shortest-paths","vertices"],"created_at":"2024-11-24T08:15:50.912Z","updated_at":"2025-10-24T14:09:17.661Z","avatar_url":"https://github.com/jledentu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# konigsberg\n\n[![Build Status](https://github.com/jledentu/konigsberg/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jledentu/konigsberg/actions)\n\nA browser/Node.js library for manipulating graphs and executing graph theory algorithms.\n\n## Features\n\n* **Directed** and **undirected** graphs\n* Customizable data on nodes and edges\n* Simple search algorithms (Depth First Search and Breadth First Search at the moment)\n* Unit tested\n\n## Installation\n\nInstall Konigsberg with npm:\n\n```\nnpm install konigsberg\n```\n\n## Usage\n\nIn Node.js / Webpack / Browserify:\n\n```js\nvar konigsberg = require('konigsberg');\nvar g = new konigsberg.DirectedGraph();\n```\n\nIn the browser:\n\n```html\n\u003cscript src=\"konigsberg.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    var g = new konigsberg.DirectedGraph();\n    g.addNode('A');\n    g.addNode('B');\n    g.addEdge('A', 'B');\n    console.log(g.hasEdge('A', 'B')); // true\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjledentu%2Fkonigsberg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjledentu%2Fkonigsberg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjledentu%2Fkonigsberg/lists"}