Re: [graphviz-interest] Borders around sub-graphs
"Emden R. Gansner" <[email protected]> Sat, 23 May 2015 11:45:49 -0400
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <[email protected]> |
On 5/22/15 9:04 AM, paul womack wrote: > I'm using ccomps and gvpack to sort a large pile > of data into connected subgraphs. > > cat data.dot | ccomps -x | dot | gvpack -g | neato -s -n2 -Tsvg > > tree.svg > > (I'm viewing with Inkscape) > > This is working. > > But I'd like to put a HTML-like "border" around each sub graph. > > I've looked at gvpack, and -G looks useful; > > -Gname=value > Specifies attributes to be added to the resulting union graph. For > example, this can be used to specify a graph label. > > But I can't find a border (or similar) attribute for graphs; > > http://www.graphviz.org/doc/info/attrs.html > > Am I missing something obvious? > > BugBear > _______________________________________________ > [email protected] > http://lists.research.att.com/mailman/listinfo/graphviz-interest > Not quite sure what you mean by putting an HTML-like border around each subgraph. However, if you would accept the type of of border that gets placed around clusters, the trick is to wrap each graph in a cluster. That can be done as follows: ccomps -x data.dot | gvpr -c 'BEGIN{$tgtname="cluster"}N[1]E[1]' | dot | gvpack -g | neato -s -n2 -Tsvg > tree.svg You can modify the gvpr script to change the display attributes, such as color and width, of the border. Emden _______________________________________________ [email protected] http://lists.research.att.com/mailman/listinfo/graphviz-interest