public class Edge extends GraphEntity
id, propertyMap| Constructor and Description |
|---|
Edge() |
Edge(int propertiesCapacity)
Use this constructor to reduce memory allocations
when properties are added to the edge
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
long |
getDestination() |
java.lang.String |
getRelationshipType() |
long |
getSource() |
int |
hashCode() |
void |
setDestination(long destination) |
void |
setRelationshipType(java.lang.String relationshipType) |
void |
setSource(long source) |
java.lang.String |
toString() |
addProperty, addProperty, getEntityPropertyNames, getId, getNumberOfProperties, getProperty, removeProperty, setIdpublic Edge()
public Edge(int propertiesCapacity)
propertiesCapacity - preallocate the capacity for the propertiespublic java.lang.String getRelationshipType()
public void setRelationshipType(java.lang.String relationshipType)
relationshipType - - the relationship type to be set.public long getSource()
public void setSource(long source)
source - - The id of the source node to be setpublic long getDestination()
public void setDestination(long destination)
destination - - The id of the destination node to be setpublic boolean equals(java.lang.Object o)
equals in class GraphEntitypublic int hashCode()
hashCode in class GraphEntitypublic java.lang.String toString()
toString in class GraphEntityCopyright © 2023. All rights reserved.