1. A method for providing electrical stimulation therapy to treat pain, the method comprising: defining a tree structure having a plurality of levels and a plurality of nodes in each of the levels, wherein each of the nodes is interconnected with at least one node above and at least two nodes below in the tree structure, each node defines a set of electrical stimulation parameters, the nodes in each level specify an adjustment to at least one of the parameters, and the nodes in different levels specify adjustment of different parameters; defining a program path through the tree structure along a series of the interconnected nodes for which efficacy of stimulation therapy delivered according to the stimulation parameters defined by the nodes in treating pain exceeds a threshold level; selecting one of the nodes in the program path; and delivering the stimulation therapy to a patient based on the parameters defined by the selected node to treat patient pain.