Write and read edge types -- this is necessary for non-matching node and edge types