public abstract class AbstractEdge extends AbstractTypedRelation implements TitanEdge
| Type | Property and Description |
|---|---|
boolean |
is
Checks whether this relation is a property.
|
type| Constructor and Description |
|---|
AbstractEdge(long id,
EdgeLabel label,
InternalVertex start,
InternalVertex end) |
| Modifier and Type | Method and Description |
|---|---|
int |
getArity()
Number of vertices on this relation
|
EdgeLabel |
getEdgeLabel()
Returns the edge label of this edge
|
String |
getLabel() |
int |
getLen()
Number of vertices on this relation that are aware of its existence
|
TitanVertex |
getOtherVertex(TitanVertex vertex)
Returns the vertex at the opposite end of the edge.
|
TitanVertex |
getVertex(com.tinkerpop.blueprints.Direction dir)
Returns the vertex for the specified direction.
|
InternalVertex |
getVertex(int pos)
Returns the vertex at the given position (0=OUT, 1=IN) of this relation
|
boolean |
isDirected()
Checks whether this relation is directed, i.e.
|
boolean |
isEdge()
Checks whether this relation is an edge.
|
boolean |
isProperty()
Checks whether this relation is a property.
|
boolean |
isUnidirected()
Checks whether this relation is unidirected, i.e.
|
void |
setVertexAt(int pos,
InternalVertex vertex) |
String |
toString() |
getDirection, getId, getProperty, getProperty, getProperty, getProperty, getPropertyKeys, getType, isHidden, isIncidentOn, isLoop, it, removeProperty, removeProperty, setProperty, setProperty, setProperty, txclone, compareTo, equals, getCompareId, getID, hashCode, hasId, isImplicitId, isLoaded, isNew, isRemoved, isTemporaryId, setIDfinalize, getClass, notify, notifyAll, wait, wait, waitgetDirection, getProperty, getType, isIncidentOn, isLoop, setPropertygetId, getID, getProperty, getProperty, hasId, isLoaded, isNew, isRemoved, remove, removeProperty, removeProperty, setProperty, setPropertycompareTogetPropertyDirect, getPropertyKeysDirect, removePropertyDirect, setPropertyDirectgetLifeCycle, setIDisProperty in interface TitanRelationTitanPropertypublic AbstractEdge(long id,
EdgeLabel label,
InternalVertex start,
InternalVertex end)
public String getLabel()
getLabel in interface com.tinkerpop.blueprints.Edgepublic void setVertexAt(int pos,
InternalVertex vertex)
public InternalVertex getVertex(int pos)
InternalRelationgetVertex in interface InternalRelationpublic int getArity()
InternalRelationgetArity in interface InternalRelationpublic int getLen()
InternalRelationgetLen in interface InternalRelationTitanEdge.isUnidirected()public EdgeLabel getEdgeLabel()
TitanEdgegetEdgeLabel in interface TitanEdgepublic TitanVertex getVertex(com.tinkerpop.blueprints.Direction dir)
TitanEdgepublic TitanVertex getOtherVertex(TitanVertex vertex)
TitanEdgegetOtherVertex in interface TitanEdgevertex - vertex on which this edge is incidentpublic boolean isDirected()
TitanEdgeisDirected in interface TitanEdgepublic boolean isUnidirected()
TitanEdgeisUnidirected in interface TitanEdgepublic boolean isProperty()
TitanRelationisProperty in interface TitanRelationTitanPropertypublic boolean isEdge()
TitanRelationisEdge in interface TitanRelationTitanEdgeCopyright © 2012–2014. All rights reserved.