Custom node shapes

I would like to create and use custom shapes that can be modified with node attr. (e.g. penwidth to modify the custom node lines width) I am trying an already working example from to experiment and create such kind of nodes, but without much success.

Example 1, the generic example works:
$ dot -Tps2 -l -o
$ ps2pdf sample.pdf

Example 2:
$ dot -Tps2 -l -Tpng -o sample-ps.png
$ feh sample-ps.png

How to modify Graphviz to allow custom graph type?

Hello everyone,

I am pretty new to Graphviz but I think it's a great, easy to use tool for developing diagrams. However, for my purposes I will be developing the same kind of graphs (share same attributes and even some nodes) and I was wondering if there's a way to modify Graphviz to support my custom graph type. What I mean by this is that when creating a graph (as of right now), one has two options: graph or digraph. But I want to add "mygraph" as a third option supported by graphviz, so now a user has three available types of graphs: graph, digraph, and mygraph.

Recent comments

Syndicate content