title: Splitting a 2-Dimensional Array
body: <p>I have this 2 dimensional array of tasks</p>
  <pre><code>const graph = [
      ['tie your shoes', 'put on your shoes'],
      ['put on your jacket', 'put on your shirt'],
      ['put on your shoes', 'put on your shorts'],
      ['put on your jacket', 'put on your shorts'],
      ['buy eggs from store', 'cook eggs'],
      ['heat up skillet', 'cook eggs']
  ]
  </code></pre>
  <p>I need to split up this graph into two separate arrays if the they have no association to each other. (i.e., putting shoes on and cooking eggs have no association/relation within the graph)</p>
  <p>Each array within the <code>graph</code> is an association of tasks. An association can be traced between two tasks if they can be traced back to a single common task - putting on your jacket can be traced back to putting on your socks</p>
  <p>The result should look like this</p>
  <pre><code>const graph_1 = [
      ['tie your shoes', 'put on your shoes'],
      ['put on your jacket', 'put on your shirt'],
      ['put on your shoes', 'put on your shorts'],
      ['put on your jacket', 'put on your shorts']
  ]
  
  const graph_2 = [
      ['buy eggs from store', 'cook eggs'],
      ['cook eggs', 'heat up skillet']
  ]
  </code></pre>
  <p>I'm not worried about sorting them at the moment - only concerned with splitting them up</p>