/** * Definition for undirected graph. */ public class UndirectedGraphNode { int label; List neighbors; UndirectedGraphNode(int x) { label = x; neighbors = new ArrayList(); } };