{"id":26947521,"url":"https://github.com/adibaba/java-yed","last_synced_at":"2025-04-02T20:19:32.354Z","repository":{"id":77447942,"uuid":"222231110","full_name":"adibaba/java-yed","owner":"adibaba","description":"A yEd graph file generator written in Java","archived":false,"fork":false,"pushed_at":"2020-10-13T17:33:13.000Z","size":153,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-10-20T16:10:51.545Z","etag":null,"topics":["graphml","graphviz","java","xml","yed","yworks"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"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/adibaba.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}},"created_at":"2019-11-17T10:29:39.000Z","updated_at":"2023-10-20T16:10:53.021Z","dependencies_parsed_at":"2023-10-20T16:20:56.558Z","dependency_job_id":null,"html_url":"https://github.com/adibaba/java-yed","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adibaba%2Fjava-yed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adibaba%2Fjava-yed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adibaba%2Fjava-yed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adibaba%2Fjava-yed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adibaba","download_url":"https://codeload.github.com/adibaba/java-yed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246884729,"owners_count":20849554,"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":["graphml","graphviz","java","xml","yed","yworks"],"created_at":"2025-04-02T20:19:31.905Z","updated_at":"2025-04-02T20:19:32.346Z","avatar_url":"https://github.com/adibaba.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java yEd\n\nThis is a yEd graph file generator written in Java.\nIt allows to create:\n\n- Nodes with labels\n- Node types (optional)\n- Directed edges between two nodes\n- Edge labels (optional)\n- Edge types (optional)\n\n![jEd example](doc/example.png)\n\n\n## Code examples\n\nExample code is available in the following files: \n\n- [Examples.java](src/main/java/de/adrianwilke/javayed/Examples.java)\n- [YedDocTest.java](src/test/java/de/adrianwilke/javayed/YedDocTest.java)\n- [IoTest.java](src/test/java/de/adrianwilke/javayed/IoTest.java)\n\n\n### Example A\n\n```java\n// Set file to write\nFile file = new File(\"exampleA.yEd.graphml\");\nSystem.out.println(\"Example file: \" + file.getAbsolutePath());\n\n// Create document\nYedDoc yedDoc = new YedDoc().initialize();\n\n// Create nodes\nString a = yedDoc.createNode(\"Adrian\");\nString b = yedDoc.createNode(\"Benjamin\");\nString c = yedDoc.createNode(\"Caesar\");\n\n// Create edges\nyedDoc.createEdge(a, b);\nyedDoc.createEdge(b, c);\nyedDoc.createEdge(c, a);\n\n// Write file\nIo.write(yedDoc.getDocument(), file);\n```\n\n\n### Example B\n\n```java\n// Set file to write\nFile file = new File(\"exampleB.yEd.graphml\");\nSystem.out.println(\"Example file: \" + file.getAbsolutePath());\n\n// Create and configure a document\nYedDoc yedDoc = new YedDoc().initialize();\nyedDoc.setFontFamily(\"Roboto\");\nyedDoc.setFontSize(14);\nyedDoc.setFontStyle(\"bold\");\n\n// Create nodes of different types\nint hero = 0;\nString s = yedDoc.createNode(\"Superman\", hero);\nString b = yedDoc.createNode(\"Batman\", hero);\nString h = yedDoc.createNode(\"Harley Quinn\", hero);\nint robot = 1;\nString r = yedDoc.createNode(\"Robocob\", robot);\nString t = yedDoc.createNode(\"T-1000 \", robot);\n\n// Create edges of different types\nint knows = 0;\nString knowsLabel = \"knows\";\nyedDoc.createEdge(s, b, knowsLabel, knows);\nyedDoc.createEdge(t, s, knowsLabel, knows);\nint loves = 1;\nString lovesLabel = \"loves\";\nyedDoc.createEdge(s, h, lovesLabel, loves);\nyedDoc.createEdge(b, h, lovesLabel, loves);\nyedDoc.createEdge(h, t, lovesLabel, loves);\nInteger unknown = null;\nString unknownLabel = null;\nyedDoc.createEdge(r, h, unknownLabel, unknown);\n\n// Write file\nIo.write(yedDoc.getDocument(), file);\n```\n\n\n## How to use the yEd Graph Editor\n\n- Download yEd at https://www.yworks.com/products/yed\n- Open a generated file\n- Click `Tools` \u003e `Fit Node to Label` \u003e Ok\n- Click `Layout` \u003e `Organic` (e.g.) \u003e Ok\n- At `Palette` \u003e `Current Elements` right-click on an element and click `Select Matching Elements`\n- Customize the elements according to your taste\n\nYou can also use yEd Live at https://www.yworks.com/yed-live/\n\n\n## Usage\n\nDownload the latest\n[release](https://github.com/adibaba/java-yed/releases)\nor current\n[code](https://github.com/adibaba/java-yed/archive/master.zip).\n\n\n### Usage of Maven and GitHub Packages\n\nAdd the following lines to your pom.xml:\n\n```xml\n\u003cdependencies\u003e\n\t\u003c!-- https://github.com/adibaba/java-yed --\u003e\n\t\u003cdependency\u003e\n\t\t\u003cgroupId\u003ede.adrianwilke\u003c/groupId\u003e\n\t\t\u003cartifactId\u003ejava-yed\u003c/artifactId\u003e\n\t\t\u003cversion\u003e(0,1]\u003c/version\u003e\n\t\u003c/dependency\u003e\n\u003c/dependencies\u003e\n\n[...]\n\n\u003cdistributionManagement\u003e\n\t\u003crepository\u003e\n\t\t\u003cid\u003egithub-adibaba-java-yed\u003c/id\u003e\n\t\t\u003cname\u003eGitHub adibaba java-yed Apache Maven Packages\u003c/name\u003e\n\t\t\u003curl\u003ehttps://maven.pkg.github.com/adibaba/java-yed\u003c/url\u003e\n\t\u003c/repository\u003e\n\u003c/distributionManagement\u003e\n```\n\nTo use GitHub Packages, you also have to edit your Maven settings.xml and to create a personal access token.\nA description on how to set up the settings.xml is available at [GitHub Help: Configuring Apache Maven for use with GitHub Packages](https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-apache-maven-for-use-with-github-packages#authenticating-to-github-packages).\nToken creation is described at [GitHub Help: Creating a personal access token for the command line](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line).\n\n\n## Deployment\n\n- Remove \"-SNAPSHOT\" from version\n- Create a tag, e.g. `git tag -a 0.0.0 -m \"0.0.0\"`\n- Push the tag: `git push --tags`\n- Create a release from [tags/](https://github.com/adibaba/java-yed/tags)\n- Run mvn install and attach binaries to the release\n- Create new \"-SNAPSHOT\" version","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadibaba%2Fjava-yed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadibaba%2Fjava-yed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadibaba%2Fjava-yed/lists"}