title: How to find the numbers connected with a number?
body: <p>Suppose we have two inputs <code>a and b</code> where <code>a</code> denotes the first integer and <code>b</code> denotes the second integer
  for example :</p>
  <pre><code>if 
  a= 1 b = 2
  a=1 b=3 
  a=2 b=3 
  </code></pre>
  <p>here <code>1</code> is connected with two integers <code>2 and 3</code> and <code>2</code> is connected with one integer <code>3</code></p>
  <p>how I can find  this and print the result like this <code>{1:{2,3}, 2:{3}}</code></p>
  <p>Note: <code>a</code> is basically the first integer and <code>b</code> is the integer connected with <code>a</code></p>
  <p>Thanks in advance. and this is not homework.</p>