j/graphdb: make incoming and outgoing return edge indices.