def METHOD_NAME(self,a):
    conList = []
    for pair1id  in range(len(a.map)):
        conOfPair1 = []
        pair1= self.A.map[pair1id]
        for pair2id in range(len(a.map)):
            if pair1id is pair2id:
                continue
            pair2 = self.A.map[pair2id]
            pair1S, pair1T,p = pair1
            pair2S, pair2T,p = pair2
            if pair1S == pair2S or pair1T == pair2T:#has conflict!
                conOfPair1.append(pair2id)
        conList.append(conOfPair1)
    return conList