家谱树c语言程序,Javascript库 - 家谱树流程图

我定制了一个Graphviz点文件来产生这样的输出。目前我正在编写一个Ruby脚本以从.gedcom文件生成此脚本。 8ThNO.jpg

这里的.dot内容,带数字的节点只是点,并以正确的方式流动边缘。

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

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值