def build_traversal(self, traversal):
<EOL>rhs_label = '<STR_LIT::>' + traversal.target_class.__label__<EOL>lhs_ident = self.build_source(traversal.source)<EOL>rhs_ident = traversal.name + rhs_label<EOL>self._ast['<STR_LIT>'] = traversal.name<EOL>self._ast['<STR_LIT>'] = traversal.target_class<EOL>rel_ident = self.create_ident()<EOL>stmt = _rel_helper(lhs=lhs_ident, rhs=rhs_ident, ident=rel_ident, **traversal.definition)<EOL>self._ast['<STR_LIT>'].append(stmt)<EOL>if traversal.filters:<EOL><INDENT>self.build_where_stmt(rel_ident, traversal.filters)<EOL><DEDENT>return traversal.name<EOL>
traverse a relationship from a node to a set of nodes