Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
usr
/
share
/
graphviz
/
gvpr
/
Filename :
addedges
back
Copy
/* 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); }