Question

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 ?

Was it helpful?

Solution

Grapviz.

try:

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

for example.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top