Pregunta

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 ?

¿Fue útil?

Solución

Grapviz.

try:

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

for example.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top