1791. Find Center of Star Graph
Last updated
Last updated
**Input:** edges = [[1,2],[2,3],[4,2]]
**Output:** 2
**Explanation:** As shown in the figure above, node 2 is connected to every other node, so 2 is the center.**Input:** edges = [[1,2],[5,1],[1,3],[1,4]]
**Output:** 1