use EdgeWeight typedef where possible