add node end pointer and check it when accessing nodes, fix crash when iteration over graph with no edges
add node end pointer and check it when accessing nodes, fix crash when iteration over graph with no edges

Sometrik/graphlib,Sometrik/graphlib