Prev / Next / 残日録 --- The Remains of the Day

 学会発表論文のために graphviz で親族の図を書いていた:[Program]

2020-10-10

11月28日に KAPAL (インドネシア研究会)の オンライン研究大会がある。 dot で図を書き始めたら、止まらなくなった。


digraph mburhu {
graph [
       charset="UTF-8",
       lyaout = neato,
       rankdir = TD,
       newrank = true,
       ]

MBWF,MBWB,MB,MF,MBS,FF,F,Ego [shape=triangle,
                      regular=true,
                      fixedsize=true,
                  style=filled,
                  width=1]
MBW,MBD,M [shape=circle,
   fixedsize=true,
  regular=true,
   style=filled,
   width=0.8]

{rank=same;
MBWB;
MBW;
MB;
F;
M;

}

subgraph cluster_0 {  # wg's wg
MBW,MBWB,MBWF [color=gray]
MBWF->MBW [weight=1]
MBWF->MBWB [weight=10]
}        

subgraph cluster_1 { # wife givers
MF,M,MB,MBS [color=lightblue, fontcolor=white]
MBD [color=blue, fontcolor=white]
MF->M [weight=-10]
MF->MB->MBS [weight=10]
MB->MBD
}
subgraph cluster_2 { # my group
FF,F,Ego [color=darkseagreen]
FF->F->Ego [weight=10]
}

MBW->MB [penwidth=6;
 color=pink, weight=100]
MB->MBWB [penwidth=10,color=purple]
F->MB [penwidth=10,color=purple]
M->F [penwidth=6;
      color=pink, weight=0]

}

このプログラムから 以下の図ができる。

     
[母方交差イトコ婚]

めでたし・めでたし。

permlink