/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package graphalgorithms;

/**
 *
 * @author piyush
 */
public class Node {
    private Node parent;
    private Node [] children;
    Node(){
    Node.parent=null;
    Node.children=null;
    }
    
}

@@ -202,16 +202,67 @@
 orithms;
+%0Aimport java.util.ArrayList;%0Aimport java.util.List;
 %0A%0A/**%0A *
@@ -345,15 +345,18 @@
 ate 
+List%3C
 Node
- %5B%5D
+%3E
  chi
@@ -364,66 +364,294 @@
 dren
-;%0A    Node()%7B%0A    Node.parent=null;%0A    Node.children=null
+= new ArrayList%3C%3E();%0A    private Vertex vertex;%0A    %0A    Node(Vertex vertex, Node parent, List%3CNode%3E children)%7B%0A        this.vertex=vertex;%0A        this.parent=parent;%0A        this.children=children;%0A    %7D%0A    %0A    private void appendChild (Node child)%7B%0A        this.children.add(child)
 ;%0A  

Update Node.java