def connect(self, node, properties=None):
if not hasattr(self.source, '<STR_LIT:id>'):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if len(self):<EOL><INDENT>raise AttemptedCardinalityViolation(<EOL>"<STR_LIT>"<EOL>)<EOL><DEDENT>else:<EOL><INDENT>return super(One, self).connect(node, properties)<EOL><DEDENT>
Connect a node

:param node:
:param properties: relationship properties
:return: True / rel instance