fixed bug
Fixed bug:
Forgot to only have i loop till n-1. ALso added the stuff to add multiple linkes between each graph set.