applied requested changes to EdgeBasedNode.h