{"id":15873800,"url":"https://github.com/phronmophobic/clj-graphviz","last_synced_at":"2025-03-16T04:30:45.171Z","repository":{"id":132749499,"uuid":"611896462","full_name":"phronmophobic/clj-graphviz","owner":"phronmophobic","description":"A clojure wrapper for the libgraphviz c libraries.","archived":false,"fork":false,"pushed_at":"2024-07-11T05:19:49.000Z","size":119,"stargazers_count":24,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-27T05:02:37.729Z","etag":null,"topics":["graphviz"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phronmophobic.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":"2023-03-09T19:07:50.000Z","updated_at":"2024-10-16T06:48:29.000Z","dependencies_parsed_at":"2024-02-15T07:46:35.599Z","dependency_job_id":null,"html_url":"https://github.com/phronmophobic/clj-graphviz","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fclj-graphviz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fclj-graphviz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fclj-graphviz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fclj-graphviz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phronmophobic","download_url":"https://codeload.github.com/phronmophobic/clj-graphviz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243802943,"owners_count":20350316,"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":["graphviz"],"created_at":"2024-10-06T01:06:50.988Z","updated_at":"2025-03-16T04:30:44.755Z","avatar_url":"https://github.com/phronmophobic.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clj-graphviz\n\nA wrapper of graphviz's underlying c libraries gvc and cgraph. \n\nA high level wrapper for rendering graphs can be found at `com.phronemophobic.clj-graphviz/render-graph`.\n\nFor direct access to gvc and cgraph, check out the `com.phronemophobic.clj-graphviz.raw`.\n\nBuilt with [clong](https://github.com/phronmophobic/clong).\n\n![clojure-cosmos](https://user-images.githubusercontent.com/156241/224561677-261b79db-bc20-4252-a872-332d6a54e67f.jpg)\n\n\n## Documentation\n\n[Documentation](https://phronmophobic.github.io/clj-graphviz/)  \n[API Reference](https://phronmophobic.github.io/clj-graphviz/reference/)\n\n## Dependency\n\nLeiningen dependency:\n\n```clojure\n[com.phronemophobic/clj-graphviz \"0.6.4\"]\n```\n\ndeps.edn dependency:\n\n```clojure\ncom.phronemophobic/clj-graphviz {:mvn/version \"0.6.4\"}\n```\n\n## libgraphviz\n\nclj-graphviz needs libgraphviz to installed on the system. The native dependencies can either be installed using a package manager or by including the maven dependency for your platform and architecture. \n\n### Clojars\nIncluding multiple platforms and architectures is fine, but it will increase the size of your dependencies\n\n```clojure\ncom.phronemophobic.cljonda/graphviz-darwin-aarch64 {:mvn/version \"2.50.0-0.9.5\"}\ncom.phronemophobic.cljonda/graphviz-darwin-x86-64 {:mvn/version \"2.50.0-0.9.5\"}\ncom.phronemophobic.cljonda/graphviz-linux-x86-64 {:mvn/version \"2.50.0-0.9.5\"}\n```\n\n### OS package manager\n\nExamples:\n\nLinux\n`sudo apt install libgraphviz-dev`\n\nMac\n`sudo port install graphviz-devel`\n\nIf you install libgraphviz via macports, you may need to add the macports jvm library path via an alias:\n```\n  :macports {:jvm-opts [\"-Djna.library.path=/opt/local/lib\"]}\n```\n\n\n## Basic Usage\n\n```clojure\n(require '[com.phronemophobic.clj-graphviz :refer [render-graph]])\n\n(render-graph {:edges [[\"a\" \"b\"]]})\n;; writes to graph.png\n\n(render-graph {:edges [[\"a\" \"b\"]]}\n              {:filename \"my-graph.png\"})\n\n```\n\nSee [documentation](https://phronmophobic.github.io/clj-graphviz/) for more info.\n\n## Related\n\n[dorothy](https://github.com/daveray/dorothy): Hiccup-style generation of Graphviz graphs in Clojure and ClojureScript.\n\nDorothy works by first generating dot DSL code and then shelling out to the `dot` command line tool. `clj-graphviz` works directly with graphviz's underlying c library. The hope is to provide tighter integration with the graphviz library and expose underlying features that are hard to access via the `dot` command line tool (like graph layout).\n\n## Future Work\n\nGraphviz offers many options to tweak how graphs are rendered. It also offers graph layout without rendering. Exposing more of graphviz's functionality with a friendly clojure interface is a natural next step. Until then, the full graphviz API is available in its form under `com.phronemophobic.clj-graphviz.raw`.\n\nFor more information on what graphviz could do, check out https://graphviz.org/pdf/libguide.pdf.\n\n## License\n\nCopyright © 2022 Adrian Smith\n\nDistributed under the Eclipse Public License version 1.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphronmophobic%2Fclj-graphviz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphronmophobic%2Fclj-graphviz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphronmophobic%2Fclj-graphviz/lists"}