Do not use lambda for the key argument for sorting.
Do not use lambda for the key argument for sorting.

Adding distance estimate to the generator and then using
itemgetter for the sorted function is faster than using
lambda.

goulu/networkx,cmtm/networkx,JamesClough/networkx,jfinkels/networkx