$rec = fgets($f);
$matches = preg_split("/[\s]+/", $rec, -1, PREG_SPLIT_NO_EMPTY);
- $n = gv::node($G,$matches[0]);
- $usedbylist = preg_split("/[,]/", $matches[3], -1, PREG_SPLIT_NO_EMPTY);
+ $n = gv::node($G,$matches[0:0]);
+ $usedbylist = preg_split("/[,]/", $matches[3:0], -1, PREG_SPLIT_NO_EMPTY);
foreach ($usedbylist as $i => $usedby) {
if ($usedby != "-") {
gv::edge($n, gv::node($G, $usedby));
fclose($f);
gv::layout($G, "dot");
-gv::render($G, "png");
+gv::render($G, "xlib");
?>