edge weights are printed when cout << G

a