import numpy as np
score = np.array([
[0.9, 0.7, 0.2, 0.6, 0.4],
[0.7, 0.9, 0.6, 0.8, 0.3],
[0.2, 0.6, 0.9, 0.4, 0.7],
[0.6, 0.8, 0.4, 0.9, 0.3],
[0.4, 0.3, 0.7, 0.3, 0.9]])
l2= [(3, 5), (1, 4), (2, 3), (3, 4), (2, 5), (4, 5)]
I want to get the corresponding scores vector based on the edge list.The score array represents an adjacency matrix where score(1,2) represents the edge (1,2)
OUTPUT:
[0.7 0.6 0.6 0.4 0.3 0.3]