X7ROOT File Manager
Current Path:
/usr/share/graphviz/gvpr
usr
/
share
/
graphviz
/
gvpr
/
📁
..
📄
addedges
(291 B)
📄
addranks
(830 B)
📄
addrings
(1.29 KB)
📄
anon
(422 B)
📄
attr
(151 B)
📄
bb
(997 B)
📄
bbox
(532 B)
📄
binduce
(1.14 KB)
📄
bipart
(455 B)
📄
chkclusters
(532 B)
📄
chkedges
(916 B)
📄
cliptree
(178 B)
📄
col
(601 B)
📄
collapse
(469 B)
📄
color
(1.41 KB)
📄
cycle
(560 B)
📄
dechain
(264 B)
📄
deghist
(351 B)
📄
deledges
(116 B)
📄
delmulti
(397 B)
📄
delnodes
(249 B)
📄
depath
(547 B)
📄
dijkstra
(647 B)
📄
flatten
(88 B)
📄
get-layers-list
(277 B)
📄
group
(791 B)
📄
histogram
(319 B)
📄
indent
(378 B)
📄
knbhd
(1.2 KB)
📄
maxdeg
(307 B)
📄
path
(449 B)
📄
rotate
(1.17 KB)
📄
scale
(1.12 KB)
📄
scalexy
(1.1 KB)
📄
span
(139 B)
📄
topon
(429 B)
📄
treetoclust
(988 B)
Editing: addrings
/* Takes a graph laid out by twopi and adds rings. * Assumes ARGV[] = "root" "=" <rootname>, as output by twopi -v. * Usage: * twopi -v foo.dot > out 2> log * gvpr -f addrings.g -a"`grep root log`" out | neato -n2 ... */ BEG_G { graph_t og; edge_t e; node_t ctr = node($, ARGV[0]); double rs = 1.0; /* min. slack between the squares of two consecutive radii */ int cx, cy; int x, y; node_t n; int i, n_r; int d; int rads[int]; char* ctr_s = ctr.pos; sscanf (ctr_s, "%d,%d", &cx, &cy); if (hasAttr($, "ranksep")) { sscanf ($.ranksep, "%f", &rs); if (rs == 0.0) rs = 1.0; } rs *= 72; rs = 1.5*rs*rs; } N [$ != ctr] { sscanf ($.pos, "%d,%d", &x, &y); d = (x-cx)*(x-cx) + (y-cy)*(y-cy); for (rads[i]) { if ((rads[i]-rs <= d) && (d <= rads[i]+rs)) return; } n_r++; rads[n_r] = d; } END_G { og = copy (NULL, $); og.outputorder = "nodesfirst"; setDflt (og, "N", "label", "\\N"); for (rads[i]) { n = node(og, "ring_"+((string)i)); n.shape = "circle"; n.pos = ctr_s; n.style = ""; n.label = ""; d = rads[i]; n.width = sprintf("%f", sqrt(d)/36.0); } for (n=fstnode($);n;n = nxtnode(n)) clone (og, n); for (n=fstnode($);n;n = nxtnode(n)) for (e=fstedge(n);e;e = nxtedge(e,n)) clone (og, e); write(og); }
Upload File
Create Folder