tnetwork.DynGraphSN.apply_nx_function¶
-
DynGraphSN.
apply_nx_function
(function, start=None, stop=None, **kwargs)[source]¶ Apply a networkx function to each snapshot and return the list of result. Parameters of the function to apply can be passed as parameter to this function. example >>> dg = DynGraphSN.graph_socioPatterns2012() >>> dg.apply_nx_function(nx.nodes) >>> dg.apply_nx_function(nx.Graph.add_node,node_for_adding=”nodeTest”)
Parameters: function – the networkx function Returns: the list of results for each snapshot