Stack Record in Dot

By xngo on March 1, 2019

digraph StackingRecord 
{
  graph [
    label="Stacking Record",
    labelloc=t,    //t=top, b=bottom
    center=true, 
    rankdir=LR,
 
        ];
 
  node [shape="record"];
  customer [label="Customer | <c0>cID | First Name | Last Name"];
  product [label="Product | pID | <p0>cID | Name | Quantity" ];
 
  customer:c0->product:p0;
 
}

Stacking Record in Dot

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.