- made nodes and connections 1-based instead of 0-based to fix upsert bug