Sorry I was talking about CLASSES command.
The point is the following.
Under the hood lightweight edges ARE NOT instances of a class.
When I created my database from Java API, I didn't create any class for my edges.
I need to create e new edge from command line.
1) I am forced to add a new class, while for all the previous edges I didn't have to do this (also if there are already other edges with the same label) => this is somehow inconsistent, since it means at the end I will have some lightweight edges for which there exists a class and others without!
2) The new created class will remain empty, since a new edge isn't a new record => this means the new class I created is unuseful
I don't remember exactly if there can be a mixed model graphdb (with lightweight AND non-lightweight edges) but I would suggest the following behaviour for ADD EDGE myLabel FROM #1:1 TO #1:2:
- IF myLabel extends E AND non-lightweight THEN as usual
- IF myLabel IS NOT A CLASS AND lightweight THEN add the lightweight edge
It would also be very useful a command to list all the edge types, which is different from listing all the classes extending E. I don't know if this requires to scan all records or a list of lightweight edges is maintained elsewhere.
My two cents,
Riccardo