{"id":21222713,"url":"https://github.com/italocobains/graph","last_synced_at":"2026-05-18T09:09:21.528Z","repository":{"id":207023404,"uuid":"718163042","full_name":"ItaloCobains/graph","owner":"ItaloCobains","description":"Is a lib wirte in c++ and nodejs to manipulate graph more fast.","archived":false,"fork":false,"pushed_at":"2024-02-09T05:28:09.000Z","size":219,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T17:23:08.921Z","etag":null,"topics":["addon","cp","graph-algorithms","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@italocobains/graph","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ItaloCobains.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-13T14:12:35.000Z","updated_at":"2024-05-15T01:36:52.000Z","dependencies_parsed_at":"2024-11-20T23:02:25.273Z","dependency_job_id":null,"html_url":"https://github.com/ItaloCobains/graph","commit_stats":null,"previous_names":["italocobains/graph"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItaloCobains%2Fgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItaloCobains%2Fgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItaloCobains%2Fgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItaloCobains%2Fgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ItaloCobains","download_url":"https://codeload.github.com/ItaloCobains/graph/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243670720,"owners_count":20328519,"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":["addon","cp","graph-algorithms","nodejs"],"created_at":"2024-11-20T22:46:42.252Z","updated_at":"2025-10-04T14:37:43.176Z","avatar_url":"https://github.com/ItaloCobains.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Graph\n\nIs a lib wirte in c++ and nodejs to manipulate graph more fast.\n\n## Install\n\n```bash\nnpm i @italocobains/graph\n```\n\n## Use\n\n```js\nconst Graph = require(\"@italocobains/graph\");\n\n\nconst graph = new Graph();\ngraph.addNode(1);\ngraph.addNode(2);\ngraph.addEdge(1, 2);\n\nconsole.log(graph.toString());\n\ngraph.removeNode(1);\n\nconsole.log(graph.toString());\n\nconst nodes = graph.getNodes();\n\nconsole.log(nodes);\n\nconsole.log(graph.hasNode(2));\n\nconsole.log(graph.hasEdge(1, 2));\n\nconsole.log(graph.getNeighbors(2));\n\nconsole.log(graph.getInNeighbors(2));\n\nconsole.log(graph.getOutNeighbors(2));\n\nconsole.log(graph.getEdge(1, 2));\n\nconsole.log(graph.getDegree(2));\n\nconsole.log(graph.getInDegree(2));\n\nconsole.log(graph.getOutDegree(2));\n\nconsole.log(graph.isEmpty());\n\nconsole.log(graph.getNumNodes());\n\nconsole.log(graph.getNumEdges());\n\ngraph.clear();\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitalocobains%2Fgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitalocobains%2Fgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitalocobains%2Fgraph/lists"}