# dynetx.DynGraph.number_of_interactions¶

DynGraph.number_of_interactions(u=None, v=None, t=None)

Return the number of interaction between two nodes at time t.

Parameters: v (u,) – If u and v are specified, return the number of interaction between u and v. Otherwise return the total number of all interaction. t (snapshot id (default=None)) – If None will be returned the number of edges on the flattened graph. nedges – The number of interaction in the graph. If nodes u and v are specified return the number of interaction between those nodes. If a single node is specified return None. int

Examples

>>> import dynetx as dn
>>> G = dn.DynGraph()