<!doctype html>

<html>
<head>
  <meta charset="utf-8">
  <title>none compressed story number 0</title>
  <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
  <script src="http://cpettitt.github.io/project/dagre-d3/latest/dagre-d3.min.js" charset="utf-8"></script>
  <style>
    dt {float: left; clear: left; width: 20em;}
    dd {font-weight: bold; margin: 0 0 0 21em;}
    .node rect {stroke: #333; fill: #fff;}
    .edgePath path {stroke: #333; fill: #333; stroke-width: 1.5px;}
  </style>
</head>
<body>
  <div class="container">
  <h1>none compressed story number 0</h1>
  <svg width="960"><g></g></svg>
  <p><dl>
       <dt>Compression of</dt><dd>3 causal flows</dd>
       <dt>obtained in average at</dt><dd>4.570933E+00 t.u</dd>
       <dt>Compressed causal flows were:</dt>
       <dd>[2;3;4]</dd>
     </dl></p>
  <script>
    // Create a new directed graph
    var g = new dagreD3.graphlib.Graph().setGraph({});
    g.setNode(1, { label: "Intro B", style: "fill: #7f7" });
    g.setNode(2, { label: ". -> A(x[.])", style: "fill: #77f" });
    g.setNode(3, { label: "A(x[.]), B(x[.]) -> A(x[1]), B(x[1])", style: "fill: #77f" });
    g.setNode(4, { label: "A(x[1]), B(x[1]), . -> A(x[1]), B(x[1]), C()", style: "fill: #77f" });
    g.setNode(5, { label: "goal", style: "fill: #f77" });
    g.setEdge(1,3,{});
    g.setEdge(2,3,{});
    g.setEdge(3,4,{});
    g.setEdge(4,5,{});
    var svg = d3.select("svg"),inner = svg.select("g");
    // Set up zoom support
    var zoom = d3.behavior.zoom().on("zoom", function() {
    inner.attr("transform", "translate(" + d3.event.translate + ")" +
    "scale(" + d3.event.scale + ")");
    });
    svg.call(zoom);// Create the renderer
     var render = new dagreD3.render();
    // Run the renderer. This is what draws the final graph.
    render(inner, g);
    // Center the graph
    var initialScale = 0.75;
    zoom
    .translate([(svg.attr("width") - g.graph().width * initialScale) / 2, 20])
    .scale(initialScale)
    .event(svg);
    svg.attr('height', g.graph().height * initialScale + 40);
  </script>
  </div>
</body>
</html>
