return (ComparablePropertyType<T>) getByName(getDb(), (String)getNode().getProperty(PROPERTY_TYPE));
}
@Override
public SortableBinaryEdge<T> createEdge(Vertex startVertex, Vertex endVertex) {
IndexedRelationship idxRel = new IndexedRelationship( startVertex.getNode(),
DynamicRelationshipType.withName(this.getName()), Direction.OUTGOING );
if ( !idxRel.exists() )
{
PropertySortedTree<T> propertySortedTree = new PropertySortedTree<T>( getDb().getGraphDatabaseService(),
getPropertyType(), true, getName() );
idxRel.create( propertySortedTree );
}
Relationship rel = idxRel.createRelationshipTo(endVertex.getNode());
return new SortableBinaryEdgeImpl<T>(db, rel.getId(), idxRel);
}