added degree Output. Need to test with diff size networks and implement into other algs