title: How to make this binomial lattice in D3.js
body: <p>I am trying to develop a simple interative application to illustrate the <a href="https://en.wikipedia.org/wiki/Binomial_options_pricing_model" rel="nofollow noreferrer">binomial option pricing model</a>. Essentially, I want to reproduce this graph here in D3.js:</p>
  
  <p><img src="https://i.stack.imgur.com/IEAWL.png" alt="Enter image description here"></p>
  
  <p>I am thinking about using a tree layout, but this is not a tree since it has cycles. I am very new to D3.js, and this is an application that I tried to generate to teach myself D3.js. I am a bit bogged down by manually generating a lattice like this.</p>
  
  <p>Is it possible to do it in D3.js?</p>