public void PostorderTraversal(NodeStructureDFS node) //Postorder traversal way of DFS { if (node == null) { return; } PostorderTraversal(node.left); Console.Write(node.data + " "); PostorderTraversal(node.right); }
public NodeStructureDFS root; // Root of the Binary Tree public DFS_RB() { root = null; }
public NodeStructureDFS(int item) { data = item; left = right = null; }