issue #1 handle corner case of node w/o edge + test