original_docstring: 
          Filter relationships by relationship type.
          
docstring: Filter relationships by relationship type.
docstring_tokens: Filter relationships by relationship type .
code: def filter_relationships(self, relationship_type: RelationshipTypes) -> List[Relationship]:
          """
          Filter relationships by relationship type.
          """
          return [rel for rel in self.relationships if rel.rel == relationship_type]
code_tokens: def filter_relationships ( self , relationship_type : RelationshipTypes ) -> List [ Relationship ] : return [ rel for rel in self . relationships if rel . rel == relationship_type ]
short_docstring: Filter relationships by relationship type.
short_docstring_tokens: Filter relationships by relationship type .
comment: """
          Filter relationships by relationship type.
          """