cellyzer/core.py
def print_connection_matrix(self):
        """
        get a 2D list with which user is connected to who and the number of calls/messages between them

        :return: matrix : list
                 headers : list
        """
        matrix = []
        all_users = self.get_all_users()
        for u1 in all_users:
            connected_users = self.get_connected_users(u1)
            row = [u1]
            for u2 in all_users:
                if u2 in connected_users:
                    weight = len(self.get_records(u1, u2))
                    row.append(weight)
                else:
                    row.append(".")
            matrix.append(row)
        headers = all_users
        headers.insert(0, "")
        tools.print_matrix_new(matrix, headers)

        get a 2D list with which user is connected to who and the number of calls/messages between them

        :return: matrix : list
                 headers : list
        
get a 2D list with which user is connected to who and the number of calls/messages between them
get a 2D list with which user is connected to who and the number of calls / messages between them
def print_connection_matrix(self):
        matrix = []
        all_users = self.get_all_users()
        for u1 in all_users:
            connected_users = self.get_connected_users(u1)
            row = [u1]
            for u2 in all_users:
                if u2 in connected_users:
                    weight = len(self.get_records(u1, u2))
                    row.append(weight)
                else:
                    row.append(".")
            matrix.append(row)
        headers = all_users
        headers.insert(0, "")
        tools.print_matrix_new(matrix, headers)
def print_connection_matrix ( self ) : matrix = [ ] all_users = self . get_all_users ( ) for u1 in all_users : connected_users = self . get_connected_users ( u1 ) row = [ u1 ] for u2 in all_users : if u2 in connected_users : weight = len ( self . get_records ( u1 , u2 ) ) row . append ( weight ) else : row . append ( "." ) matrix . append ( row ) headers = all_users headers . insert ( 0 , "" ) tools . print_matrix_new ( matrix , headers )
get a 2D list with which user is connected to who and the number of calls/messages between them
get a 2D list with which user is connected to who and the number of calls / messages between them
"""
        get a 2D list with which user is connected to who and the number of calls/messages between them

        :return: matrix : list
                 headers : list
        """
matrix : list
headers : list
matrix : list headers : list
self