Some optimizations to setEdge
Some optimizations to setEdge

kdawes/graphlib,gardner/graphlib,cpettitt/graphlib,cpettitt/graphlib,gardner/graphlib,dagrejs/graphlib,kdawes/graphlib,dagrejs/graphlib,dagrejs/graphlib