title: Using Google Sheets or Python to cluster a directed graph (or matrix)
body: <p>Hello all and thank you for your time.</p>
  <p>I have a group of about 100 people. Each user has liked 3 of the other 99 users. These people need to be divided in about 4 groups of roughly equal size. They need to be grouped together so that the groups consist mostly of people who like each other, or at least as much as possible.</p>
  <p>To make the problem a bit more challenging, I need to take into account gender and nationality but that could be done on a second level.</p>
  <p>I have tried to create a matrix (directed graph) in Google Sheets but I am now stuck when it comes to clustering them. I am happy to use Python once I have identified the algorithms needed. Any suggestions please?</p>
  <p>Thank you!</p>