Currently I think it's set so that each edge name is stored on the edge itself. That makes changing all edges of a certain type from one name to another very difficult. Instead, have the edges reference back to a central definition so that can be changed. I don't remember how node type is defined, but do the same for that. Remember to implement this in a way that doesn't break existing edges and nodes (make the "type" field optional, and the default for new graphs, and preferentially use it, and maybe update old nodes/edges automatically).
Currently I think it's set so that each edge name is stored on the edge itself. That makes changing all edges of a certain type from one name to another very difficult. Instead, have the edges reference back to a central definition so that can be changed. I don't remember how node type is defined, but do the same for that. Remember to implement this in a way that doesn't break existing edges and nodes (make the "type" field optional, and the default for new graphs, and preferentially use it, and maybe update old nodes/edges automatically).