add: GetPairwiseWeight method