Mathematical Aspects Of Wiener Index