added ability to show edge weights