Springer Algorithms on Trees and Graphs