{"id":23046448,"url":"https://github.com/josugoar/scinet","last_synced_at":"2026-02-10T21:06:48.802Z","repository":{"id":54657073,"uuid":"266760249","full_name":"josugoar/scinet","owner":"josugoar","description":"Network science abstract data types","archived":false,"fork":false,"pushed_at":"2025-02-09T00:14:32.000Z","size":154,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-02T18:19:10.972Z","etag":null,"topics":["algorithms","data-structures"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/scinet-josugoar","language":"Python","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/josugoar.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-25T11:21:20.000Z","updated_at":"2025-02-09T00:14:35.000Z","dependencies_parsed_at":"2024-06-12T15:44:09.547Z","dependency_job_id":"d3bd1082-55fe-4571-94ca-2795bbf00e61","html_url":"https://github.com/josugoar/scinet","commit_stats":{"total_commits":45,"total_committers":3,"mean_commits":15.0,"dds":"0.37777777777777777","last_synced_commit":"155b9b332ac781e4e8f034aacea9692829af377a"},"previous_names":["joshgoa/scinet"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/josugoar/scinet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josugoar%2Fscinet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josugoar%2Fscinet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josugoar%2Fscinet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josugoar%2Fscinet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josugoar","download_url":"https://codeload.github.com/josugoar/scinet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josugoar%2Fscinet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264887897,"owners_count":23678770,"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":["algorithms","data-structures"],"created_at":"2024-12-15T22:24:38.247Z","updated_at":"2026-02-10T21:06:48.768Z","avatar_url":"https://github.com/josugoar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scinet\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/scinet.png\" alt=\"scinet\" width=\"640\" height=\"320\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/build-passing-blue\" alt=\"build\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/author-josugoar-green\" alt=\"author\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-red\" alt=\"license\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/pypi-v0.4.9-yellow\" alt=\"pypi\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/python-\u003e=3.8-orange\" alt=\"python\" /\u003e\n\u003c/p\u003e\n\n\u003ch1\u003e\u003c/h1\u003e\n\n\u003e Network science abstract data types\n\n**scinet.Graph** is designed upon the [graph (abstract data type)](https://en.wikipedia.org/wiki/Graph_(abstract_data_type)) definition and functions as a bare bones skeletal graph data mapping, containing abstract vertices and edges.\n\nIncludes DiGraph and MultiGraph support, with HyperGraph capabilities.\n\n## Installation\n\n1. Install [Python \u003e= 3.8](https://www.python.org/downloads/)\n2. Install [scinet]()\n```sh\n$ pip install scinet-josugoar\n```\n\n## Usage\n\nImport **scinet**\n```py\nimport scinet as sn\n```\n\nCreate graph\n```py\nG = sn.Graph()\n```\n\nManipulate data\n\n* add_vertex\n```py\nG.add_vertex(vertex := \"foo\")\n```\n\n* add_edge\n\nEdges must be assigned using hashable keys so that no name conflicts exist between source_vertex and target_vertex edges\n```py\nkey = G.add_edge(source_vertex := \"foo\", target_vertex := \"bar\"[, edge := \"foobar\"])\n```\n\n* remove_vertex\n```py\nG.remove_vertex(vertex := \"foo\")\n```\n\n* remove_edge\n```py\nG.remove_edge(source_vertex := \"foo\", target_vertex := \"bar\"[, edge := \"foobar\"])\")\n```\n\n* adjacent\n```py\n(target_vertex := \"bar\") in G[(source_vertex := \"foo\")]\n\u003e\u003e\u003e True\n```\n\n* neighbours\n```py\nset(G[(vertex := \"foo\")])\n\u003e\u003e\u003e { \"neighbour_1\", \"neighbour_2\", ... }\n```\n\nSee [docs](docs/scinet.html) for further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosugoar%2Fscinet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosugoar%2Fscinet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosugoar%2Fscinet/lists"}