1

AIコースの状態空間グラフを作成する必要があり、GraphVizを使用して作成したいと考えていました(Diaよりもはるかに高速です)。方法がわからないのは、「And」接続の方法です。これは、基本的に、同じノードに接続する2本の線の間の円弧です。これは可能ですか?

4

1 に答える 1

1

はい。このための明示的なドット構文はありませんが、ほとんどの場合、次のように実行されます。

# just graph set-up
digraph new_graph {
ratio = "auto"
mincross = 2.0

# draw some nodes
"001" [shape=box, regular=1, style=filled, fillcolor="#FCD975"] ;
"017" [shape=circle  , regular=1,style=filled,fillcolor="#9ACEEB"   ] ;
"007" [shape=diamond  , regular=1,style=filled,fillcolor="#FCD975"   ] ;
# the key line--creating tiny node w/ no label, no color
# i use this style because it mimics the 'midpoint' style used in Omnigraffle et al.
"LN01" [shape=diamond,style=filled,label="",height=.1,width=.1] ;

# draw the edges
"001" -> "LN01" [dir=none,weight=1] ;
"007" -> "LN01" [dir=none,weight=1] ;
"LN01" -> "017" [dir=none, weight=2] ;
}

代替テキストhttp://img121.imageshack.us/img121/2547/dotgvziv.png

于 2010-02-13T15:23:10.230 に答える