{"id":16842864,"url":"https://github.com/teverett/dot4j","last_synced_at":"2025-04-11T05:52:57.585Z","repository":{"id":40309611,"uuid":"309119712","full_name":"teverett/dot4j","owner":"teverett","description":"A Java library for GraphViz DOT which enables both read and write of DOT files","archived":false,"fork":false,"pushed_at":"2025-04-01T05:06:04.000Z","size":180,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T05:52:46.197Z","etag":null,"topics":["dot","graphviz","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teverett.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":"2020-11-01T14:57:52.000Z","updated_at":"2025-01-05T20:32:08.000Z","dependencies_parsed_at":"2024-01-13T22:21:15.771Z","dependency_job_id":"6dd6268e-0db0-4f46-acf2-f99fa66ecf6b","html_url":"https://github.com/teverett/dot4j","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/teverett%2Fdot4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teverett%2Fdot4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teverett%2Fdot4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teverett%2Fdot4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teverett","download_url":"https://codeload.github.com/teverett/dot4j/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351407,"owners_count":21089271,"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":["dot","graphviz","java"],"created_at":"2024-10-13T12:48:49.319Z","updated_at":"2025-04-11T05:52:57.563Z","avatar_url":"https://github.com/teverett.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![CI](https://github.com/teverett/dot4j/workflows/CI/badge.svg)\n\n# DOT4J\n\nA Java library for reading and writing [GraphViz](https://en.wikipedia.org/wiki/Graphviz) [DOT](https://en.wikipedia.org/wiki/DOT_(graph_description_language)) files.\n\nThe DOT grammar is from [here](https://github.com/teverett/grammars-v4/tree/master/dot)\n\nA formal description of DOT is available at [graphviz.org](https://graphviz.org/doc/info/lang.html)\n\n# License\n\nkGraphML is licensed under the 3-Clause BSD license.\n\n# Maven Coordinates\n\n```\n\u003cgroupId\u003ecom.khubla.dot4j\u003c/groupId\u003e\n\u003cartifactId\u003edot4j\u003c/artifactId\u003e\n\u003cversion\u003e1.2.0\u003c/version\u003e\n\u003cpackaging\u003ejar\u003c/packaging\u003e\n```\n\n# Usage\n\nReading and writing of DOT files is done via [DOTMarshaller](https://github.com/teverett/dot4j/blob/master/src/main/java/com/khubla/dot4j/DOTMarshaller.java)\n\n## Reading DOT\n\n`Graph g = DOTMarshaller.importGraph(inputStream);`\n\n## Writing DOT\n\n```\nGraph g = new Graph(false, GraphType.digraph, \"mygraph\");\nNode n1 = new Node(\"n1\");\ng.addNode(n1);\nNode n2 = new Node(\"node2\");\ng.addNode(n2);\nEdge theEdge = new Edge(\"n1\", \"node2\");\ng.addEdge(theEdge);\nDOTMarshaller.exportGraph(g, baos);\n```\n\nCreates:\n```\ndigraph mygraph {\n   node2;\n   n1;\n   n1 -\u003e node2;\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteverett%2Fdot4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteverett%2Fdot4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteverett%2Fdot4j/lists"}