
Former-commit-id: 0579e878a69b7c285ca71870e9ca5730649a2fda Former-commit-id: 7cced5b488441d87bf070a9a444317db0e048880
22 lines
224 B
Awk
22 lines
224 B
Awk
#
|
|
|
|
{
|
|
node[$1]++
|
|
node[$2]++
|
|
link[++M] = $1 " " $2
|
|
}
|
|
|
|
|
|
END {
|
|
for (n in node)
|
|
N++
|
|
print "DL n=" N
|
|
print "format = edgelist1"
|
|
print "labels embedded:"
|
|
print "data:"
|
|
for (i = 1 ; i <= M ; i++)
|
|
print link[i]
|
|
}
|
|
|
|
|