{"id":15107586,"url":"https://github.com/evref-bl/pharogexf","last_synced_at":"2026-02-19T00:35:03.815Z","repository":{"id":91711761,"uuid":"580739170","full_name":"Evref-BL/PharoGEXF","owner":"Evref-BL","description":"Manipulate GEXF file format with Pharo ","archived":false,"fork":false,"pushed_at":"2023-06-07T15:45:04.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-18T19:29:48.543Z","etag":null,"topics":["gexf","pharo"],"latest_commit_sha":null,"homepage":"","language":"Smalltalk","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/Evref-BL.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":"2022-12-21T10:22:43.000Z","updated_at":"2024-08-03T17:04:31.400Z","dependencies_parsed_at":null,"dependency_job_id":"7741c489-ea91-4a29-8dcf-ab0eeded81da","html_url":"https://github.com/Evref-BL/PharoGEXF","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/Evref-BL%2FPharoGEXF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FPharoGEXF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FPharoGEXF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FPharoGEXF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Evref-BL","download_url":"https://codeload.github.com/Evref-BL/PharoGEXF/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353679,"owners_count":20925324,"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":["gexf","pharo"],"created_at":"2024-09-25T21:25:46.598Z","updated_at":"2025-10-17T07:51:00.884Z","avatar_url":"https://github.com/Evref-BL.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PharoGEXF\n\n[![Moose 10](https://github.com/badetitou/PharoGEXF/actions/workflows/test.yml/badge.svg)](https://github.com/badetitou/PharoGEXF/actions/workflows/test.yml)\n[![Coverage Status](https://coveralls.io/repos/github/badetitou/PharoGEXF/badge.svg?branch=main)](https://coveralls.io/github/badetitou/PharoGEXF?branch=main)\n\nManipulate [GEXF file format](https://gexf.net) with Pharo.\n\n## Installation \n\n```st\nMetacello new\n  githubUser: 'badetitou' project: 'PharoGEXF' commitish: 'main' path: 'src';\n  baseline: 'GEXF';\n  load\n```\n\n## Usage\n\n### Basic commands\n\n1. Create a gexf element\n    ```st\n    gexf := GEXF new.\n    ```\n2. Set metadata\n    ```st\n    gexf metadata creator: 'Gephi.org'.\n    gexf metadata description: 'A Web network'.\n    ```\n 3. Add nodes\n    ```st\n    graph := gexf graph.\n    node1 := graph createNodeWithId: '0'.\n\tnode1 label: 'Hello'.\n\tnode2 := graph createNodeWithId: '2'.\n\tnode2 label: 'World'.\n    ```\n4. Connect nodes\n    ```st\n    node1 connectTo: node2.\n    ```\n5. Export file\n    ```st\n    String streamContents: [:stream |\n\t    (GEXFWriter on: stream)\n\t\t    prettyPrinting;\n\t \t    export: gexf ]\n    ```\n\n### Full example to show dependencies of classes from Moose\n\n```st\nclasses := ((model allWithSubTypesOf: FamixJavaType)  select: [ :d | d isStub not and: [ d isAnonymousClass not ]  ]).\n\ngexf := GEXF new.\ngexf metadata creator: 'Gephi.org'.\ngexf metadata description: 'my project'.\n\ngraph := gexf graph.\n\ndicClassNode := classes collect: [ :class | \n\t| node |\n\tnode := graph createNode.\n\tnode label: class mooseName.\n\tclass -\u003e node\n\t ] as: Dictionary.\n\ndicClassNode keysAndValuesDo: [ :class :node |\n\t(class query outgoing dependencies targetsAtScope: FamixTType) do: [ :dep |\n\t\tdicClassNode at: dep ifPresent: [ :aDepNode | node connectTo: aDepNode ]\n\t\t ] \n\t ].\n\n\n\n\n'd:/seditRHDep.gexf' asFileReference writeStreamDo:  [:stream |\n    (GEXFWriter on: stream)\n\t    prettyPrinting;\n \t    export: gexf ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevref-bl%2Fpharogexf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevref-bl%2Fpharogexf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevref-bl%2Fpharogexf/lists"}