Discrete Rearrangements and the Polya-Szego Inequality on Graphs