Statistical Mechanics Of Networks