{"id":13892822,"url":"https://github.com/oerpli/CSVtoGEXF","last_synced_at":"2025-07-17T06:31:09.343Z","repository":{"id":68105562,"uuid":"82583666","full_name":"oerpli/CSVtoGEXF","owner":"oerpli","description":"Python script that converts CSV files to GEXF files (for gephy)","archived":false,"fork":false,"pushed_at":"2017-06-06T17:05:56.000Z","size":22,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-07T17:30:58.840Z","etag":null,"topics":["csv","csv-converter","gephi","gexf","graphs","matlab","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oerpli.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}},"created_at":"2017-02-20T17:24:00.000Z","updated_at":"2023-01-18T23:30:32.000Z","dependencies_parsed_at":"2023-02-22T06:30:52.098Z","dependency_job_id":null,"html_url":"https://github.com/oerpli/CSVtoGEXF","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oerpli%2FCSVtoGEXF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oerpli%2FCSVtoGEXF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oerpli%2FCSVtoGEXF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oerpli%2FCSVtoGEXF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oerpli","download_url":"https://codeload.github.com/oerpli/CSVtoGEXF/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226226191,"owners_count":17592345,"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":["csv","csv-converter","gephi","gexf","graphs","matlab","python"],"created_at":"2024-08-06T17:01:15.111Z","updated_at":"2024-11-24T20:31:21.555Z","avatar_url":"https://github.com/oerpli.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# CSVtoGEXF\nPython script that converts CSV files to GEXF files (for gephy).\n\n\n## Usage\nAll CSV files must be tab seperated.  Quotechar is `\"`. Headers are required\nThe script requires the following arguments:\n* -n (nodes) A list of nodes, columns are: id, label [, whatever is defined in definitions.csv]\n* -e (edges) A list of edges, columns are: source, target, weight [, whatever is defined in definitions.csv]\n\nAnd takes these optional arguments.\n* -d (definitions) A list that contains the names of custom columns, a marker to indicate whether the column is for the edge (1) or the node (0) table as well as a datatype. Not required if no additional columns exist\n* -es (edgespells) A list of timespans where a edge or an edge attribute exist: source, target, start, end, [attribute name, attribute value]\n* -ns (nodespells) A list of timespans where a node or a node attribute exist: id, start, end [attribute name, attribute value]\n* -a (arcs) Whether the edges are directed, undirected or mutual (directed but always in both directions). Default is directed.\n\nIn the testdata folder there are samples for all the different CSV files. If you have problems contact me on [twitter](https://twitter.com/oerpli)\n\nIf neither edgespells or nodespells are given the resulting graph is assumed to be static. If spells are given for attributes any values provided for the same attribute in the node or edge list are discarded (this is because attributes without a start/end declaration must hold at all times and giving spells for those times would result in a critical error in Gephi.\n\n\n## Matlab support\nThe matlab export functions are in the folder, depending on the path from where you call them you may need to adapt some paths in the `Export_Example.m` file. \nAlso note that currently the types of the optional attributes have to be defined (look at the gexf primer to see what types are allowed). I intend to write some auto detection sometime in the future.\n\nExporting dynamic graphs does not work currently as I have no idea how people store their dynamic graphs in matlab. If you would like to use this feature drop me a message and I will see what I can do. \n\n\n## Support for other languages\nIn theory it should be quite easy to add some csv exporter for other languages that output csv files in the desired format for consumption by this script. You can open a pull request if you've done something like this for your language of choice. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foerpli%2FCSVtoGEXF","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foerpli%2FCSVtoGEXF","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foerpli%2FCSVtoGEXF/lists"}