Nimgraphviz
A nim library for making graphs with GraphViz and DOT (based on PyGraphviz)
Install / Use
npx skills add QuinnFreedman/nimgraphvizInstalls into whichever agent you are using.
README
Archived. This library has been moved to https://github.com/Aveheuzed/nimgraphviz
nimgraphviz
The nimgraphviz module is a library for making graphs using
GraphViz based on
PyGraphviz.
To use it, add
requires "nimgraphviz >= 0.2.0"
to your .nimble file.
To export images, you must have GraphViz installed. Download it here: https://graphviz.gitlab.io/download.
Read the docs here.
Here is an example of creating a simple graph:
# create a directed graph
var graph = newGraph(directed=true)
# set some attributes of the graph:
graph.graphAttr.add("fontsize", "32")
graph.graphAttr.add("label", "Test Graph")
# add edges:
# (if a node does not exist already it will be created automatically)
graph.addEdge("a", "b", "a-to-b", [("label", "A to B")])
graph.addEdge("c", "b", "c-to-b", [("style", "dotted")])
graph.addEdge("b", "a", "b-to-a")
graph.addNode("c", [("color", "blue"), ("shape", "box"),
("style", "filled"), ("fontcolor", "white")])
graph.addNode("d", [("lable", "node")])
# if you want to export the graph in the DOT language,
# you can do it like this:
# echo graph.exportDot()
# Export graph as PNG:
graph.exportImage("test_graph.png")
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.6kCommit, push, and open a PR
