Fix analysis warning #130

Fixes warning that edges is a dead store. This will also fix the warnings presented in issue #130.