decode results into proper Vertex and Edge structs