code: def read_connections(file_name, point_names):
      
  
      connections = []
      fid = open(file_name, 'r')
      line=fid.readline()
      while(line):
          connections.append(np.array(line.split(',')))
          connections[-1][0] = connections[-1][0].strip()
          connections[-1][1] = connections[-1][1].strip()
          line = fid.readline()
      connect = np.zeros((len(point_names), len(point_names)),dtype=bool)
      for i in range(len(point_names)):
          for j in range(len(point_names)):
              for k in range(len(connections)):
                  if connections[k][0] == point_names[i] and connections[k][1] == point_names[j]:
                      
                      connect[i,j]=True
                      connect[j,i]=True
                      break
      
      return connect
docs: Read a file detailing which markers should be connected to which for motion capture data.