recognize edge/vertex in dynamic deserialization