[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
share
/
graphviz
/
gvpr
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 addedges
291 B
SET
[ EDIT ]
|
[ DEL ]
📄 addranks
830 B
SET
[ EDIT ]
|
[ DEL ]
📄 addrings
1,319 B
SET
[ EDIT ]
|
[ DEL ]
📄 anon
422 B
SET
[ EDIT ]
|
[ DEL ]
📄 attr
151 B
SET
[ EDIT ]
|
[ DEL ]
📄 bb
997 B
SET
[ EDIT ]
|
[ DEL ]
📄 bbox
532 B
SET
[ EDIT ]
|
[ DEL ]
📄 binduce
1,166 B
SET
[ EDIT ]
|
[ DEL ]
📄 bipart
455 B
SET
[ EDIT ]
|
[ DEL ]
📄 chkclusters
532 B
SET
[ EDIT ]
|
[ DEL ]
📄 chkedges
916 B
SET
[ EDIT ]
|
[ DEL ]
📄 cliptree
178 B
SET
[ EDIT ]
|
[ DEL ]
📄 col
601 B
SET
[ EDIT ]
|
[ DEL ]
📄 collapse
469 B
SET
[ EDIT ]
|
[ DEL ]
📄 color
1,440 B
SET
[ EDIT ]
|
[ DEL ]
📄 cycle
560 B
SET
[ EDIT ]
|
[ DEL ]
📄 dechain
264 B
SET
[ EDIT ]
|
[ DEL ]
📄 deghist
351 B
SET
[ EDIT ]
|
[ DEL ]
📄 deledges
116 B
SET
[ EDIT ]
|
[ DEL ]
📄 delmulti
397 B
SET
[ EDIT ]
|
[ DEL ]
📄 delnodes
249 B
SET
[ EDIT ]
|
[ DEL ]
📄 depath
547 B
SET
[ EDIT ]
|
[ DEL ]
📄 dijkstra
647 B
SET
[ EDIT ]
|
[ DEL ]
📄 flatten
88 B
SET
[ EDIT ]
|
[ DEL ]
📄 get-layers-list
277 B
SET
[ EDIT ]
|
[ DEL ]
📄 group
791 B
SET
[ EDIT ]
|
[ DEL ]
📄 histogram
319 B
SET
[ EDIT ]
|
[ DEL ]
📄 indent
378 B
SET
[ EDIT ]
|
[ DEL ]
📄 knbhd
1,226 B
SET
[ EDIT ]
|
[ DEL ]
📄 maxdeg
307 B
SET
[ EDIT ]
|
[ DEL ]
📄 path
449 B
SET
[ EDIT ]
|
[ DEL ]
📄 rotate
1,194 B
SET
[ EDIT ]
|
[ DEL ]
📄 scale
1,147 B
SET
[ EDIT ]
|
[ DEL ]
📄 scalexy
1,123 B
SET
[ EDIT ]
|
[ DEL ]
📄 span
139 B
SET
[ EDIT ]
|
[ DEL ]
📄 topon
429 B
SET
[ EDIT ]
|
[ DEL ]
📄 treetoclust
988 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: scalexy
/* finds root node of graph. * scales the x and y position of all other nodes using, first, * ARGV[0], or $G.scale. * * The expected syntax is "x,y" where at least one of x or y must * be given. If only one is given, the other is taken as 1. */ BEGIN { double scalex, scaley; int r, done; int setScale (char* s) { if ((sscanf (s, ",%f",&scaley))) { scalex = 1; return 1; } else { r = sscanf (s, "%f,%f",&scalex,&scaley); if (r) { if (r == 1) scaley = 1; return 1; } } return 0; } } BEG_G { node_t ctr = node($,aget($,"root")); double cx, cy, x, y, delx; /* get scale argument */ done = 0; if (ARGC == 1) done = setScale (ARGV[0]); if (!done && isAttr($,"G","scale")) done = setScale ($.scale); if (!done) scalex = scaley = 1.0; if ((scalex == 1.0) && (scaley == 1.0)) exit (0); $.bb = ""; sscanf (ctr.pos, "%f,%f", &cx, &cy); } N [$ != ctr] { sscanf ($.pos, "%f,%f", &x, &y); delx = scalex*(x - cx) + cx; dely = scaley*(y - cy) + cy; $.pos = sprintf ("%f,%f", delx, dely); }