{"id":16728263,"url":"https://github.com/tmc/dot","last_synced_at":"2025-10-18T01:54:05.843Z","repository":{"id":4767861,"uuid":"5918857","full_name":"tmc/dot","owner":"tmc","description":"graphviz dot language support for Go","archived":false,"fork":false,"pushed_at":"2024-07-07T23:16:45.000Z","size":992,"stargazers_count":21,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-01T10:23:33.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/tmc.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}},"created_at":"2012-09-23T02:38:49.000Z","updated_at":"2024-11-18T11:22:10.000Z","dependencies_parsed_at":"2024-07-08T00:27:56.996Z","dependency_job_id":"9c939cdc-0820-49f7-b4f5-a9625fb99022","html_url":"https://github.com/tmc/dot","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fdot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fdot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fdot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmc%2Fdot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmc","download_url":"https://codeload.github.com/tmc/dot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229586747,"owners_count":18096674,"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-10-12T23:09:29.825Z","updated_at":"2025-10-18T01:54:00.791Z","avatar_url":"https://github.com/tmc.png","language":"Go","funding_links":[],"categories":["Content"],"sub_categories":["Language Bindings"],"readme":"# dot\n\ndot is a Go package that provides support for working with the DOT language, which is used for describing graphs in Graphviz.\n\n## Features\n\n- Create and manipulate graph structures\n- Add nodes, edges, and subgraphs\n- Set attributes for graphs, nodes, and edges\n- Generate DOT language output\n- Import and export graphs in DOT and JSON formats\n- Graph analysis and algorithms (e.g., topological sort, shortest path)\n- Graph visualization helpers (PNG and SVG output)\n\n## Installation\n\nTo install the dot package, use the following command:\n\n```\ngo install github.com/tmc/dot@latest\n```\n\n## Usage\n\nHere's a simple example of how to use the dot package:\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/tmc/dot\"\n)\n\nfunc main() {\n    g := dot.NewGraph(\"Example\")\n    g.Set(\"label\", \"This is an example graph\")\n\n    n1 := dot.NewNode(\"Node1\")\n    n1.Set(\"shape\", \"box\")\n    n2 := dot.NewNode(\"Node2\")\n    n2.Set(\"color\", \"red\")\n\n    g.AddNode(n1)\n    g.AddNode(n2)\n\n    e := dot.NewEdge(n1, n2)\n    e.Set(\"label\", \"connects to\")\n    g.AddEdge(e)\n\n    fmt.Println(g.String())\n}\n```\n\nThis will output the DOT language representation of the graph.\n\n## Documentation\n\nFor detailed documentation, please refer to the [GoDoc](https://pkg.go.dev/github.com/tmc/dot) page.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmc%2Fdot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmc%2Fdot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmc%2Fdot/lists"}