// [master_graph_02.dot]
//   2019.08.01 can not do without in INVIS_5 ETC
//                                    next time blow up right await before the paint brush
// I filled in using PINTA: colour picker+ paint brush + pencil =1pixel when blown up

// no clusters
// [FORM_GENERAL.dot]
//        In A I  originally used the trick (
// node [ penwidth = .1]   and  node [ style=filled,FILLCOLOR= "#  ..  "]
//  I have now "discovered" that it is better  to use:
//     [ style=filled, COLOR= "#  ..  "] ,
//  BUT still need [penwidth = .01] because otherwise the boxs with two 
//      colours will have a perimeter of the first colour listed


// NAME OF DIAGRAPH DOES NOT HAVE TO BE SAME AS FILE; IT IS THE FILE THAT ONE DOTS
//                             no dashes
digraph FORM_ANCESTORS   {

//                       PAGE SIZE
//1st is max width, second max height
//size ="8.5, 14. generation_0B -> generation_1B  //[color = "&&"]

// may not want
// splines =line // this is a GRAPH attribute

//  this leaves a margin (of 1.5 in?)\n Jette Stern"
pad = 1.5//no dashes in name
  

bgcolor="#D9D9D9"

//  DEFAULTS FOR THE NODES AND EDGES BETWEEN NODES
//  THESE DEFINE NODES & EDGES UNTIL OVERIDE 

node [penwidth =.01]  // AVOID PERIMETERS ON MIXED COLOURS
//                                                         color inside = bgcolor
node [shape="box", style = "filled", color="#D9D9D9", fontname="linux libertine bold",  
                       fontsize=28]    // was 19
// for marriages I changed "circle"  to "box". It is better for arrows   
//       also I do not use multiple colours

edge  [arrowhead=none, style = bold, penwidth = 12,
    fontname="linux libertine bold" fontsize = 28]

// back to 7 5, 7 now on amalia marx   
// I had already put this inside various edges
// fontname="linux libertine bold", fontsize=28, label ="+++  "

//                             SEPARATION
//   nodesep = 1.0
//	`ranksep=   1.5   // too small 0.25    between rows , apparently can not switch
// weight  = integer > 1 shortens,  does not seem to affect

//                                       %%%%%%%%  NAMES START    %%%%%%%% 
//                                             NO dashes in names
//                        numbers before indicate where information is given

//       %%%%%%%%%%%%%   GENERATION    0 %%%%%%%%%%%%%%%%%%
generation_0A [color = "#FF0000", penwidth = 5, style = "filled", fillcolor="#D9D9D9" label ="Feist 
Katz (00)\n"]
generation_0B [label ="Meyer Katz\n Sara (1)\n"]
generation_0C [color = "#FF0000", penwidth = 5, style = "filled", fillcolor="#D9D9D9" label 
="Simson Hertz\n Kela (2)\n"] 
     generation_0A ->  generation_0B [penwidth = 12, style ="dotted",  label ="???\n"]

// PLAINTEXT_1 -> generation_0B [style ="invisible"]

{rank=same; generation_0A, generation_0B, generation_0C}

  
  //       %%%%%%%%%%%%%   GENERATION    1 %%%%%%%%%%%%%%%%%%
  subgraph         {             // keeps genrations 1 & 2 together
  generation_1A [color = "#FF0000", penwidth = 5, style = "filled", fillcolor="#D9D9D9,
               "label ="Jacob Löb Katz\n Malchen (0)"]  
  generation_1B [color = "#FF0000", penwidth = 5, style = "filled", fillcolor="#D9D9D9"
              label =" Sussman Katz Marx\n Hannchen Hertz (2)\n"]  
  generation_1C [label =" Baruch Marx`\n Hanna (6)"]

  {rank=same; generation_1A, generation_1B, generation_1C}
  
     generation_0A -> generation_1A  [color = "#4FAAFF"] 
     generation_0B -> generation_1B  [color = "#4FAAFF"] 
     generation_0C -> generation_1B  [color = "#4FAAFF"] 
     
     generation_0B ->  generation_1C [penwidth = 12, style ="dotted", 
  label =" ???"]
     
  //       %%%%%%%%%%%%%   GENERATION    2 %%%%%%%%%%%%%%%%%%
  generation_2A [color = "#FF0000", penwidth = 5, style = "filled", fillcolor="#D9D9D9" label 
="Selig Katz\n Fradchen Lilienstein (1.0)"]
  generation_2C [label ="Jacob Marx\n Jette Stern (7)"]
    generation_2B [label ="Liebe Stern) (5)"]  
   generation_2M [shape = "box",    height = 1.1, label = "ca.\n 1817"]
  generation_2D [label ="Isaak Marx\n first marriage  (5)"]  
   {rank=same; generation_2A, generation_2C, generation_2B, generation_2M,  generation_2D}

    generation_2B ->   generation_2M ->   generation_2D   [penwidth = 15, style = "dashed", color = 
"#00A400"]
   
     generation_1A -> generation_2A   [color = "#4FAAFF"]
     generation_1B -> generation_2D   [color = "#4FAAFF"]  
     generation_1C -> generation_2C   [color = "#4FAAFF"]
                 } // END SUBGRAPH
   
  //       %%%%%%%%%%%%%   GENERATION    3 %%%%%%%%%%%%%%%%%%
  //                                               CHILDREN 3 couples GENERATION 2
 
// children jacob+jette
// I moved  HERZ MARX down with jette stiefel 2nd marriag

  //children_selig+fradschen
subgraph     {   
    generation_3B [label ="Jakob Löb Katz-Stiefel (1.3)"]
    generation_3D [label =" Hannchen Marx (13))"]
   {rank = same;    generation_3D,   generation_3B}  
        generation_3B -> generation_3D   [penwidth = 15, style = "dashed", color =  "#00A400", 
 label ="            1837"]  
       // generation_3B  ->  generation_3M  
                    }  // END SUBGRAPH
  
   generation_2A ->   generation_3B   [color = "#4FAAFF"]                    
   generation_2M -> generation_3D  [color = "#4FAAFF"]     //     
   
    //       %%%%%%%%%%%%%   GENERATION    4A - %%%%%%%%%%%%%%%%%%
    //                     ABSOLUTELY NEED THIS, CONNECT BY HAND
                                           // to push gutel + issak down
   subgraph{
            INVIS_4U  [style = "invis", height =.1] 
           INVIS_4V  [style = "invis", height =.1] 
          {rank = same;    INVIS_4U, INVIS_4V}
                  }
            subgraph{
            INVIS_4W  [style = "invis", height =.1] 
           INVIS_4X  [style = "invis", height =.1]
          {rank = same;    INVIS_4W, INVIS_4X}
                  }   
                  
        //       %%%%%%%%%%%%%   GENERATION    4B - %%%%%%%%%%%%%%%%%%
 // box for marriage
generation_4A [color = "#FF0000", penwidth = 5, style = "filled", fillcolor="#D9D9D9",
label ="Jette Stiefel \n first marriage  (1.1, 5)"] 
generation_4M [shape = "box" ,height = 1.1, label = "1827"]
generation_4B [color = "#FF0000", penwidth = 5, style = "filled", fillcolor="#D9D9D9",
label ="Isaak Marx\n second marriage (5)"]
{rank=same; generation_4A, generation_4M,  generation_4B}
        generation_2A ->   generation_4A   [color = "#4FAAFF"]
        generation_4A -> generation_4M ->   generation_4B  [penwidth = 15, style = "dashed",
        color = "#00A400"]

        //children issac+Jette
//subgraph cluster_three_children  just makes things worse
generation_4E  [label="Sara Marx (20)\n  &#9829;\n  Heinemann\n Katzenstein\n \n "]
generation_4D [color = "#FF0000", penwidth = 5, style = "filled", fillcolor="#D9D9D9" label="Amalie 
Marx (19)\n &#9829;\n Abraham\n Katzenstein \n"]
//generation_4F  [label="Betty Marx (22)"]  // to tilly, but too much
  //                                                   
{rank=same; generation_4D, generation_4E}
subgraph cluster_sam_karoline{
penwidth = 3
generation_4G  [label="Samuel Marx (23)"]
generation_4H  [label="Karoline Katz-Stiefel (13, 23)"]
                                                   }

    generation_4E->  generation_4D  [style = "invis"]
    generation_4D ->  generation_4G [style = "invis"]
    // samuel & karoline!
       generation_4G->  generation_4H [penwidth = 15, style = "dashed",
         color ="#00A400", label ="  1863"]

generation_4M -> generation_4D  [color = "#4FAAFF"]
    generation_4M -> generation_4E  [color = "#4FAAFF"]
   //generation_4M -> generation_4F    [color = "#4FAAFF"]
   generation_4M -> generation_4G    [color = "#4FAAFF"]
  //                hannchen+j.L. k-s to karoline
   generation_3D -> generation_4H    [color = "#4FAAFF"]  // change from jakob (3B)
 
    generation_2D ->  INVIS_4U -> generation_4B [penwidth = 15,color ="#C88244"]
 
    //       %%%%%%%%%%%%%   GENERATION    5A - %%%%%%%%%%%%%%%%%%
    //                     ABSOLUTELY NEED THIS, CONNECT BY HAND
                                           // to push gutel + issak down
   subgraph{
            INVIS_5U  [style = "invis", height =.1] 
           INVIS_5V  [style = "invis", height =.1] 
          {rank = same;    INVIS_5U, INVIS_5V}
                  }   // END SUBGRAPH
            subgraph{
            INVIS_5W  [style = "invis", height =.1] 
           INVIS_5X  [style = "invis", height =.1]
          {rank = same;    INVIS_5W, INVIS_5X}
                  }   // END SUBGRAPH
 
 // "box" for marriage
generation_5A [label ="Jette Stiefel\n second marriage (1.1, 5)"] 
generation_5M [shape = "box", height = 1.1, label = "1848"]
generation_3C [label ="Herz Marx (26)"]{rank = same; generation_5A,  generation_5M, generation_3C}
      generation_5A ->  generation_5M [penwidth = 15, style = "dashed", color = 
                       "#00A400"]
      generation_5M ->  generation_3C  [penwidth = 15, style = "dashed", color = 
                       "#00A400"]
        generation_2C ->   generation_3C     [color = "#4FAAFF"]
        // connecting Jette first marriage with Jette second marriage
        //        have to split in two; do not make dashed
         // edge [ arrowhead = normal]  //  WILL NOT ACCEPT IN QUOTES
         //  leave off arrows, ok here , but not with issak
        generation_4A ->INVIS_5W  [ penwidth = 15, color = "#C88244"]
        INVIS_5W -> generation_5A  [ penwidth = 15, color = "#C88244"]
    }  // end  //[master_graph_01.dot]   //no dashes in name
  //       %%%%%%%%%%%%%   FORMS %%%%%%%%%%%%%%%%%%
  
//       %%%%%%%%%%%%%   GENERATION    XX %%%%%%%%%%%%%%%%%%

//    generation_xx  [label=" ()"]

// "box" for marriage
//generation_** [shape = "box",    height = 1.1, label = "++"
//                                style=filled,color="++; .5  (&&; .5"] 

//{rank=same;  ++,  ++}

//   generation_++ -> generation_@@  [color = "&&"] 
   
      // use parent colours to link
      // generation_** -> generation_Y  [color = "&&&"]
      // generation_** -> generation_Y  [color = "&&&"]
