teneto.utils¶
teneto.utils Package¶
Many helper functions for Teneto
Functions¶
|
Converts array representation to contact representation. |
Converts contact representation to array representation. |
|
|
Binarizes a network proprtionally. |
|
Binarizes a network based on RDP compression. |
|
Make binary network based on magnitude thresholding. |
|
Binarizes a network, returning the network. |
|
Generally diagonal is set to 0. |
|
Attempts to identify what nettype input graphlet tnet is. |
|
This function checks that netin input is either graphlet (tnet) or contact (C). |
|
This function returns a specified distance function. |
|
Takes input network and checks what the input is. |
|
Takes input of community assignments. |
Given an contact representation with repeated contacts, this function removes duplicates and creates a value |
|
|
Returns a numpy array (snapshot representation) from thedataframe contact list |
Function checks distance_func_name, if it is specified as 'default'. |
|
|
Get the dimension order of a network measure. |
|
Returns subset of dataframe that matches index |
|
Returns a supraadjacency matrix from a temporal network structure |
|
Creates undirected networkx object |
|
Check if a dict is jsonable. |