title: How to cluster pairs without networkx
body: <p>I have a list of lists:</p>
  <p><code>[['suzy', 'joe', ...], ['suzy', 'tom', ...], ['paul', 'kristy',...], ['kristy', 'griffin',...], ...]</code></p>
  <p>My desired output is to cluster the pairs into two lists:</p>
  <pre><code>['suzy', 'joe', 'tom']
  ['paul', 'kristy', 'griffin']
  </code></pre>
  <p>I read <a href="https://stackoverflow.com/questions/35021792/an-algorithm-to-create-clusters-from-data-pairs-in-python">this post</a> that had a similar question, but it was answered with <code>networkx</code>. However, I am avoiding use of <code>networkx</code>, and have been struggling with doing this.</p>
  <p>I tried creating a dictionary with one name, and then appending other names if they were in a pair, but it was getting messy. Any help is appreciated!</p>