carnival-data / carnival

JVM property graph data unification framework
https://carnival-data.github.io/carnival/
GNU General Public License v3.0
7 stars 2 forks source link

VertexDef -> ElementDef #95

Closed augustearth closed 2 years ago

augustearth commented 2 years ago

VertexDef contains only a single method lookup(Vertex) which returns the VertexDefTrait for a given Vertex. We want to be able to look up EdgeDefTraits from Edges in a similar fashion. The logic of lookup(Vertex) is agnostic. We should be able to write a unified method and a couple of thin wrapper methods.