Mini Shell

Direktori : /usr/share/graphviz/gvpr/
Upload File :
Current File : //usr/share/graphviz/gvpr/addedges

/* Add edges from input graph to argument graph
 * Does not add nodes.
 */
BEGIN{
  graph_t g = readG(ARGV[0]);
  node_t h, t;
  edge_t e;
}
E {
  if ((h = isNode(g,head.name)) && (t = isNode(g,tail.name))) {
    if (!isEdge(t,h,"")) {
      e = copy(g,$);
    }
  }
}
END {
  write(g);
}



Zerion Mini Shell 1.0