matrix_directed_weighted

bandicoot.network.matrix_directed_weighted(user, interaction=None)

Returns a directed, weighted matrix for call, text and call duration.

If interaction is None, the weight measures both calls and texts: the weight is the number of 30 minutes periods with at least one call or one text.

Examples

>>> m = bc.network.matrix_directed_weighted(user, interaction='call')

m[i][j] is the number of calls from i to j.