Advertisement
sdumitriu

Simple pedigree graph for DOT processing

Jun 26th, 2013
2,794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
DOT 1.52 KB | None | 0 0
  1. strict digraph pedigree {
  2.   ordering=out;
  3.   splines=ortho;
  4.   ranksep=0.25;
  5.   nodesep=1;
  6.   node [label="",width=1,height=1, shape=box];
  7.   edge [arrowhead=none, arrowtail=none];
  8.  
  9. # Edges
  10.   Pers1 -> Part3m -> Pers2 [constraint=false,w=10];
  11.   Part3u -> Pers1 -> Part3d [style=invis];
  12.   Part3u -> Part3m [style=invis];
  13.   Part3u -> Pers2 -> Part3d [style=invis];
  14.   Part3m -> Part3d -> Preg4u -> Preg4d;
  15.   Preg4d -> Pers5;
  16.   Part7u -> Pers5 -> Part7d [style=invis];
  17.   Part7u -> Part7m [style=invis];
  18.   Part7u -> Pers6 -> Part7d [style=invis];
  19.   Part7m -> Part7d -> Preg8u -> Preg8d;
  20.   Pers5 -> Part7m -> Pers6 [constraint=false,w=10];
  21.   Preg8d -> Pers9;
  22.  
  23. # Nodes
  24. ## Persons
  25.   Pers1 [shape=circle];
  26.   Pers2 [shape=box];
  27.   Pers5 [shape=box];
  28.   Pers6 [shape=circle];
  29.   Pers9 [shape=diamond,style=dashed];
  30. ## Partnerships
  31.   Part3u [shape=circle,height=0,width=0,fixedsize=true];
  32.   Part3m [shape=circle,height=0.2,width=0.2,fixedsize=true,fillcolor=red,color=black,style=filled];
  33.   Part3d [shape=circle,height=0,width=0,fixedsize=true];
  34.   Part7u [shape=circle,height=0,width=0,fixedsize=true];
  35.   Part7m [shape=circle,height=0.2,width=0.2,fixedsize=true,fillcolor=red,color=black,style=filled];
  36.   Part7d [shape=circle,height=0,width=0,fixedsize=true];
  37. ## Pregnancies
  38.   Preg4u [shape=circle,height=0.1,width=0.1,fixedsize=true,style=filled];
  39.   Preg4d [shape=circle,height=0,width=0,fixedsize=true];
  40.   Preg8u [shape=circle,height=0.1,width=0.1,fixedsize=true,style=filled];
  41.   Preg8d [shape=circle,height=0,width=0,fixedsize=true];
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement