@@ -0,0 +1,282 @@
+package com.dw.algorithmlib;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aclass UndirectedGraphNode %7B%0A    int label;%0A    List%3CUndirectedGraphNode%3E neighbors;%0A    UndirectedGraphNode(int x) %7B %0A    %09label = x; %0A    %09neighbors = new ArrayList%3CUndirectedGraphNode%3E(); %0A    %7D%0A%7D;%0A

add undirected graph node in java