class Node { public int data; public Node parent; public List<Node> children; } Node node = new Node(){ data=5, parent=null, children=new List<Node>() }