def __repr__(self): from py2neo.database.cypher import CypherWriter r = ReprIO() writer = CypherWriter(r) writer.write_node(self) return r.getvalue()