You are given a directed graph with edges of length i to node edges[i].
The edge score of a node is defined as the sum of the labels of all nodes that have a directed edge pointing to that node.
Return the node with the highest edge score. If multiple nodes have the same highest edge score, return the node with the smallest index.
Constraints:
n edges.length
edges[i]
edges[i] i
You are given a directed graph with edges of length i to node edges[i].
The edge score of a node is defined as the sum of the labels of all nodes that have a directed edge pointing to that node.
Return the node with the highest edge score. If multiple nodes have the same highest edge score, return the node with the smallest index.
Constraints:
n edges.length
edges[i]
edges[i] i