# dynetx.DynDiGraph.in_degree¶

DynDiGraph.in_degree(nbunch=None, t=None)

Return the in degree of a node or nodes at time t.

The node in degree is the number of incoming interaction to that node in a given time frame.

Parameters: nbunch (iterable container, optional (default=all nodes)) – A container of nodes. The container will be iterated through once. t (snapshot id (default=None)) – If None will be returned the degree of nodes on the flattened graph. nd – A dictionary with nodes as keys and degree as values or a number if a single node is specified. dictionary, or number

Examples

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