Fixed DiGraph.edges() call with a nobj

That one caught my attention when edges_iter(nobj) and edges(nobj) weren't behaving the same way. I think it was mostly a copy-paste issue so there might be others like this around! I've added tests that failed in the previous case and now pass. 

Sorry about the deleted and added lines. I am trying to figure out where those are coming from...