graph prints with edge weights and labels