Changed graph ids to use the river._id property

Fixes #5