adjust node/edge IDs -1

This starts node and edge IDs in the GraphML output from zero, adjusting
the KAM node/edge IDs since they index from 1.