So I have some encoded directed graphs in the form:

(1,2,3,4),((1,2),(2,1),(3,4))

So just basic list of nodes and then a list of edges. Is there a program that will let me pipe in a string like that and draw it, so I don't have to draw the graph manually by hand ?

有帮助吗?

解决方案

Grapviz.

try:

digraph G {
    A->B
    A->C
    A->D
    D->B
}

for example.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top