This is the Code for Network Analysis