Tôi đã chỉnh sửa Graphviz dot-tệp để tạo ra kết quả như vậy. Hiện tại tôi đang làm việc trên tập lệnh Ruby để tạo tệp này từ tệp .gedcom.
Tại đây, nội dung .dot, các nút có số chỉ là dấu chấm và dòng chảy theo đúng hướng.
digraph G {
graph [nodesep=0.2,splines=ortho,ranksep=0.05]
node [shape=box,fontname=Helvetica,fontsize=8;color="green",fixedsize=true,width=1,height=0.5,style=filled]
Grandfather [color="lightblue"]
Grandmother [color="pink"]
StephGrandmother [color="pink"]
Father [color="lightblue"]
Mother [color="pink"]
Uncle [color="lightblue"]
Laurent [color="lightblue"]
Child2 [color="lightblue"]
Child3, Child4 [color="pink"]
node[label="", width=0, height=0];
edge[arrowhead=none, color=blue];
{rank=same;StephGrandmother;Grandfather;Grandmother;Grandfather1}
{rank=same;Father;Father1;Mother;Uncle}
{rank=same;Laurent;Child2;Child3,Child4}
{rank=same;Father2;Father3}
StephGrandmother:e -> Grandfather:w
Grandfather:e -> Grandfather1
Grandfather1 -> Grandmother:w
Grandfather1 -> Grandfather2
Grandfather2 -> Father:n
Grandfather2 -> Uncle:n
Father:e -> Father1
Father1 -> Mother:w
Father1 -> Father2
Father2:w -> Laurent:n
Father2:w -> Child2:n
Father2 -> Father3
Father3:e -> Child3:n
Father3:e -> Child4:n
}
Bạn có nhận được thư viện nào không ?? Tôi cũng đang tìm kiếm tương tự:] – sunny