{"id":13892730,"url":"https://github.com/digitalmethodsinitiative/GEXF-library","last_synced_at":"2025-07-17T06:30:46.524Z","repository":{"id":8084856,"uuid":"9498451","full_name":"digitalmethodsinitiative/GEXF-library","owner":"digitalmethodsinitiative","description":"PHP class to help with building GEXF networks.","archived":false,"fork":false,"pushed_at":"2014-01-08T14:58:36.000Z","size":159,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-07T17:30:35.930Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/digitalmethodsinitiative.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}},"created_at":"2013-04-17T13:42:43.000Z","updated_at":"2019-05-14T11:54:26.000Z","dependencies_parsed_at":"2022-09-25T06:11:18.312Z","dependency_job_id":null,"html_url":"https://github.com/digitalmethodsinitiative/GEXF-library","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/digitalmethodsinitiative%2FGEXF-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalmethodsinitiative%2FGEXF-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalmethodsinitiative%2FGEXF-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalmethodsinitiative%2FGEXF-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalmethodsinitiative","download_url":"https://codeload.github.com/digitalmethodsinitiative/GEXF-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226226102,"owners_count":17592328,"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":"2024-08-06T17:01:10.803Z","updated_at":"2024-11-24T20:31:07.809Z","avatar_url":"https://github.com/digitalmethodsinitiative.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"GEXF-library\n============\n\nPHP class to help with building GEXF networks.\n\nExample\n=======\n\n\t// create new graph\n\t$gexf = new Gexf();\n\t$gexf-\u003esetTitle(\"Hashtag - user \" . $filename);\n\t$gexf-\u003esetEdgeType(GEXF_EDGE_UNDIRECTED);\n\t$gexf-\u003esetCreator(\"tools.digitalmethods.net\");\n\t\n\t// fill bi-partite graph\n\tforeach ($userHashtags as $user =\u003e $hashtags) {\n\t\tforeach ($hashtags as $hashtag =\u003e $frequency) {\n\t\t\n\t\t\t// make node 1\n\t\t\t$node1 = new GexfNode($user);\n\t\t\t$node1-\u003eaddNodeAttribute(\"type\", 'user', $type = \"string\");\n\t\t\t$gexf-\u003eaddNode($node1);\n\t\n\t\t\t// make node 2\n\t\t\t$node2 = new GexfNode($hashtag);\n\t\t\t$node2-\u003eaddNodeAttribute(\"type\", 'hashtag', $type = \"string\");\n\t\t\t$gexf-\u003eaddNode($node2);\n\t\t\n\t\t\t// create edge\t\n\t\t\t$edge_id = $gexf-\u003eaddEdge($node1, $node2, $frequency);\n\t\t}\n\t}\n\t\n\t// render the file\n\t$gexf-\u003erender();\n\n\t// write out the file\n\tfile_put_contents('file.gexf', $gexf-\u003egexfFile);","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalmethodsinitiative%2FGEXF-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalmethodsinitiative%2FGEXF-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalmethodsinitiative%2FGEXF-library/lists"}