cypy/graph/store.py
def relationship_count(self, r_type=None, n_ids=()):
        """ Count relationships filtered by type and endpoint.
        """
        if r_type is None and not n_ids:
            return len(self._relationships)
        elif not n_ids:
            return len(self._relationships_by_type.get(r_type, ()))
        else:
            return sum(1 for _ in self.relationships(r_type, n_ids))
 Count relationships filtered by type and endpoint.
        
Count relationships filtered by type and endpoint.
Count relationships filtered by type and endpoint .
def relationship_count(self, r_type=None, n_ids=()):
        if r_type is None and not n_ids:
            return len(self._relationships)
        elif not n_ids:
            return len(self._relationships_by_type.get(r_type, ()))
        else:
            return sum(1 for _ in self.relationships(r_type, n_ids))
def relationship_count ( self , r_type = None , n_ids = ( ) ) : if r_type is None and not n_ids : return len ( self . _relationships ) elif not n_ids : return len ( self . _relationships_by_type . get ( r_type , ( ) ) ) else : return sum ( 1 for _ in self . relationships ( r_type , n_ids ) )
Count relationships filtered by type and endpoint.
Count relationships filtered by type and endpoint .
""" Count relationships filtered by type and endpoint.
        """
self
r_type
n_ids