Generally diagonal is set to 0. This function helps set the diagonal across time.
tnet (array) – temporal network (graphlet)
val (value to set diagonal to (default 0).)
tnet – Graphlet representation with new diagonal
array
set_diagonal()
binarize
gen_nettype