contact2graphlet

contact2graphlet(C)[source]

Converts contact representation to array representation.

Graphlet representation discards all meta information in contacts.

Parameters:C (dict) – A contact representation. Must include keys: ‘dimord’, ‘netshape’, ‘nettype’, ‘contacts’ and, if weighted, ‘values’.
Returns:tnet – Graphlet representation of temporal network.
Return type:array

Note

Returning elements of tnet will be float, even if binary graph.