Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.
/ dotted Public archive

dotted is a simple dsl to create a graphviz graph, then output it a string to be fed to graphviz.

License

Notifications You must be signed in to change notification settings

yuanweixin/dotted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotted is a simple dsl to create a graphviz graph, then output it a string to be fed to graphviz.

usage:

var g = newGraph(true)
g.graphAttrs = @[("fontname", "42")]
g.name = some("round-table")
discard g.node("A", attrs=[("charset", "42")])
    .node("B", attrs=[("fixedsize", "42")])
    .node("L", attrs=[("labeljust", "42")])
    .edge("A", "B", attrs=[("lhead", "42")])
    .edge("A", "L", attrs=[("xdotversion", "42")])
    .edge("B", "L", attrs=[("constraint", "false")])
echo g.render()

About

dotted is a simple dsl to create a graphviz graph, then output it a string to be fed to graphviz.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages