def __init__(self, type): if neo4j.RelationshipType.instance_(type): self.__jobj__ = type self._name = type.name() else: self.__jobj__ = rel_type(type) self._name = type
def istype(self, tp_name): return self.__jobj__.isType(rel_type(tp_name))