OrientDB Create Edge - OrientDB

What is OrientDB Create Edge?

In OrientDB, the concept Edge works like a relative between vertices with the help of some properties. Edges and vertices are the major components of a graph database. It applies polymorphism on Edges. The base class for an Edge is E. While implementing edges, if source or destination vertices are missing or don’t exist, then the transaction will be rollback.
The Subsequent statement is the basic syntax of Create Edge Command.
Subsequent are the details about the options in the above syntax.
<class> − Defines the class name for the edge.
<cluster> − Defines the cluster in which you want to store the edge.
JSON − Provides JSON content to set as the record.
RETRY − Defines the number of retries to attempt in the event of conflict.
WAIT − Defines the time to delay between retries in milliseconds.
BATCH − Defines whether it breaks the command down into smaller blocks and the size of the batches.

Example

Execute the Subsequent query to create an edge E between two vertices #9:0 and #14:0.
If the above query is Carried out productively, you will get the Subsequent output.
Execute the Subsequent query to create a new edge type and an edge of new type.
If the above query is Carried out productively, you will get the Subsequent output.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

OrientDB Topics