fedigraph/to_dot.awk

16 lines
235 B
Awk

BEGIN {
print "digraph fediverse {"
print "graph [overlap=false outputorder=\"edgesfirst\"]"
print "node [style=\"filled\"]"
FS=","
}
# rel src dst
$1 == "followers" {
print "\"" $2 "\"", "->", "\""$3 "\";"
}
END {
print "}"
}