{"id":24508467,"url":"https://github.com/aplbrain/gordium","last_synced_at":"2025-07-21T11:06:30.434Z","repository":{"id":227901912,"uuid":"171554801","full_name":"aplbrain/gordium","owner":"aplbrain","description":"A tool for untangling the mysteries of large-scale graphs.","archived":false,"fork":false,"pushed_at":"2022-04-28T13:48:15.000Z","size":67,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-30T12:44:33.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/aplbrain.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-02-19T21:43:59.000Z","updated_at":"2024-04-25T17:53:17.000Z","dependencies_parsed_at":"2024-03-15T18:27:11.925Z","dependency_job_id":"53d28590-dde2-4fbf-ae9b-61b14d73acc6","html_url":"https://github.com/aplbrain/gordium","commit_stats":null,"previous_names":["aplbrain/gordium"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aplbrain/gordium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aplbrain%2Fgordium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aplbrain%2Fgordium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aplbrain%2Fgordium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aplbrain%2Fgordium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aplbrain","download_url":"https://codeload.github.com/aplbrain/gordium/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aplbrain%2Fgordium/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266287824,"owners_count":23905461,"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":[],"created_at":"2025-01-22T00:16:25.182Z","updated_at":"2025-07-21T11:06:30.410Z","avatar_url":"https://github.com/aplbrain.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gordium\nA tool for untangling the mysteries of large-scale graphs.\n\n## Installation\n\n```shell\ngit clone https://github.com/aplbrain/gordium.git\npip install -r requirements.txt\npip install .\n```\n\n## Data\nGordium expects to receive a pandas DataFrame representing an edge list. It will handle two columns containing the ids of source nodes and target nodes respectively. By default, these column names are expected to be \"source\" and \"target\", but they can be specified by passing values for `src_label` and `tgt_label` to the Gordium constructor. At present, all edges are treated as directed, multiedges are ignored, edge attributes are ignored, and selfloops are permitted. A typical CSV representing the edgeframe of a directed 3-cycle is presented below.\n\n```csv\nsource,target\n0,1\n1,2\n2,0\n```\n\n## Usage\n\n```python\nimport pandas as pd\nfrom gordium import Gordium\n\nedgeframe = pd.read_csv('example.csv')\ng = Gordium(\n        edgeframe,\n        src_label='MY_SOURCE',\n        tgt_label='MY_TARGET')\nanalytics = g.process()\n```\n\n## Graph Backends\nGordium defaults to using NetworkX for its graph\nalgorithms, but it also supports several additional\nbackends. To use a different backend, pass the\nbackend constructor into the Gordium constructor as\na `backend`.\n\nCurrent backends include:\n- NetworkXBackend\n- IGraphBackend (optional; requires [igraph](https://igraph.org/python/))\n\n```python\nimport pandas as pd\nfrom gordium import Gordium, IGraphBackend\n\nedgeframe = pd.read_csv('example.csv')\ng = Gordium(\n        edgeframe,\n        backend=IGraphBackend,\n        src_label='MY_SOURCE',\n        tgt_label='MY_TARGET')\nanalytics = g.process()\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faplbrain%2Fgordium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faplbrain%2Fgordium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faplbrain%2Fgordium/lists"}