문제

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