{"id":28485488,"url":"https://github.com/typefox/elk-libavoid-examples","last_synced_at":"2025-07-16T18:03:05.277Z","repository":{"id":66133536,"uuid":"508354498","full_name":"TypeFox/elk-libavoid-examples","owner":"TypeFox","description":"Examples for the integration of Libavoid edge routing in ELK","archived":false,"fork":false,"pushed_at":"2022-08-24T07:14:58.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T06:36:24.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TypeFox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null},"funding":{"github":"TypeFox"}},"created_at":"2022-06-28T15:25:23.000Z","updated_at":"2022-06-28T15:26:00.000Z","dependencies_parsed_at":"2023-05-16T15:00:57.386Z","dependency_job_id":null,"html_url":"https://github.com/TypeFox/elk-libavoid-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TypeFox/elk-libavoid-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TypeFox%2Felk-libavoid-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TypeFox%2Felk-libavoid-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TypeFox%2Felk-libavoid-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TypeFox%2Felk-libavoid-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TypeFox","download_url":"https://codeload.github.com/TypeFox/elk-libavoid-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TypeFox%2Felk-libavoid-examples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265528725,"owners_count":23782741,"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-06-08T00:10:43.888Z","updated_at":"2025-07-16T18:03:05.272Z","avatar_url":"https://github.com/TypeFox.png","language":"Java","readme":"# ELK Libavoid Examples\n\nThis repository contains an example for using the [ELK Libavoid](https://github.com/TypeFox/elk-libavoid) Eclipse plug-in. The example uses one of the Eclipse plug-in templates with a [command handler](https://github.com/TypeFox/elk-libavoid-examples/blob/main/test.plugin/src/test/plugin/handlers/SampleHandler.java).\n\nIn this example, layout is invoked via the `RecursiveGraphLayoutEngine`. For other ways to use ELK layouts, see the [ELK documentation](https://www.eclipse.org/elk/documentation/tooldevelopers.html).\n\nThe basic usage is very simple:\n```java\nvar engine = new RecursiveGraphLayoutEngine();\nvar graph = createGraph();\nengine.layout(graph, new BasicProgressMonitor());\n```\n([SampleHandler.java:27-29](https://github.com/TypeFox/elk-libavoid-examples/blob/3569ef5f6edcea0e56ba0bb604ea6295d6e9632c/test.plugin/src/test/plugin/handlers/SampleHandler.java#L27-L29))\n\nThe following steps are important when creating the graph:\n\n - Set the [`ALGORITHM` option](https://github.com/TypeFox/elk-libavoid-examples/blob/3569ef5f6edcea0e56ba0bb604ea6295d6e9632c/test.plugin/src/test/plugin/handlers/SampleHandler.java#L53) of the graph to `\"de.cau.cs.kieler.kiml.libavoid\"`\n - Assign [positions and sizes](https://github.com/TypeFox/elk-libavoid-examples/blob/3569ef5f6edcea0e56ba0bb604ea6295d6e9632c/test.plugin/src/test/plugin/handlers/SampleHandler.java#L57-L58) to all nodes and ports\n - Set the [`PORT_CONSTRAINTS` option](https://github.com/TypeFox/elk-libavoid-examples/blob/3569ef5f6edcea0e56ba0bb604ea6295d6e9632c/test.plugin/src/test/plugin/handlers/SampleHandler.java#L59) of nodes to `FIXED_POS`\n - Set the [`PORT_SIDE` option](https://github.com/TypeFox/elk-libavoid-examples/blob/3569ef5f6edcea0e56ba0bb604ea6295d6e9632c/test.plugin/src/test/plugin/handlers/SampleHandler.java#L65) of every port to one of the values `NORTH`, `EAST`, `SOUTH` or `WEST`\n\nThe resulting edge routing can be read from the [edge layout sections](https://github.com/TypeFox/elk-libavoid-examples/blob/3569ef5f6edcea0e56ba0bb604ea6295d6e9632c/test.plugin/src/test/plugin/handlers/SampleHandler.java#L30-L31).\n","funding_links":["https://github.com/sponsors/TypeFox"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypefox%2Felk-libavoid-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypefox%2Felk-libavoid-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypefox%2Felk-libavoid-examples/lists"}