I am trying to create an edge for two vertex classes by using pyorient. Th way I am doing it is;
vertex_class = client.command( "create class ABC extends V")
vertex_class = client.command( "create class my_class extends V")
edge_class = client.command("CREATE CLASS E12 EXTENDS E")
edge_class = client.command("create edge E12 from ABC to my_class")
The vertex classes and edge class are created successfully, however, I am unable to create the edge. Any ideas on what I am doing wrong? Do I have to add vertexes first, if yes, then how I can do that in pyorient?
The error is not anything to do with python it seems. This question is more of an OrientDB question than python question. When you create the edge, you have to specify the resource id or you can use inline select. I am using a different example as I am not clear on your vertex, edge and links.