[instaviz-users] how to set a default style for a node?

Andy Dent dent at oofile.com.au
Sun Mar 29 02:35:35 CDT 2009


On 29/03/2009, at 1:51 PM, Ryan Schmidt wrote:

> uld be extended to support these kinds of user style
> definitions. In existing Graphviz syntax, you can only have a single
> global node or edge style, and then you can override that in
> individual nodes and edges, but there's no concept of being able to
> define multiple node or edge style templates and have those templates
> then used for specific nodes and edges.

That is not quite accurate.

Any time you redefine attributes using node[...] or edge[...], they  
stay in force as defaults for nodes and edges defined afterwards.

I make very heavy use of this to keep diagrams from being cluttered  
with lots of decoration. There's an example file in this style and  
output at:
http://aussiedesignedsoftware.com/blog/?p=72#more-72

I agree it would be nice to have a way to use something like CSS  
classes to associate a style with a node defined in an arbitrary  
location.

Andy Dent
Freelance Designer-Developer - C++,  C#, Objective-C, Python, REALbasic



More information about the instaviz-users mailing list