public class EdgeElement extends AbstractElement<org.apache.tinkerpop.gremlin.structure.Edge,Schema.EdgeProperty>
Represent an Edge in a GraknTx
Wraps a tinkerpop Edge constraining it to the Grakn Object Model.
| Constructor and Description |
|---|
EdgeElement(EmbeddedGraknTx graknGraph,
org.apache.tinkerpop.gremlin.structure.Edge e) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes the edge between two concepts and adds both those concepts for re-validation in case something goes wrong
|
boolean |
equals(Object object) |
int |
hashCode() |
VertexElement |
source() |
VertexElement |
target() |
element, id, isDeleted, label, property, property, propertyBoolean, propertyImmutable, propertyImmutable, propertyUnique, txpublic EdgeElement(EmbeddedGraknTx graknGraph, org.apache.tinkerpop.gremlin.structure.Edge e)
public void delete()
delete in class AbstractElement<org.apache.tinkerpop.gremlin.structure.Edge,Schema.EdgeProperty>public int hashCode()
hashCode in class AbstractElement<org.apache.tinkerpop.gremlin.structure.Edge,Schema.EdgeProperty>public boolean equals(Object object)
equals in class AbstractElement<org.apache.tinkerpop.gremlin.structure.Edge,Schema.EdgeProperty>public VertexElement source()
public VertexElement target()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.