There are times where you want the structural elements of an Edge beyond id and label when you valueMap(true), which forces something like:
We could continue to overload valueMap() and do stuff like with(adjacents) or other such things, but perhaps we should just leave that step alone since it is so widely used. Maybe we just need a new step? How about elementMap() which preserves the structure of any graph element, meaning:
- Vertex - include id and label plus properties as single cardinality - multiproperties could be included using with()??)
- Edge - include id, label, inVId, outVId, outVLabel, inVLabel (basically full reference elements for vertices plus properties
- VertexProperty - include id and label plus properties
If we had a step like that then the above would become:
I think the key thing here is that prior to "reference elements" users relied on the full Vertex or Edge to get all data and given that we don't have that anymore we need a way to allow users to easily convert the entire structure of a graph element to its Map counterpart.