Intermediate checkin for edge weight support.
Adds edge weight functionality.