Fixed DiGraph.edges(nobj) and added tests