dynetx.DynDiGraph.has_node

DynDiGraph.has_node(n, t=None)

Return True if the graph, at time t, contains the node n.

Parameters

n : node t : snapshot id (default None)

If None return the presence of the node in the flattened graph.

Examples

>>> import dynetx as dn
>>> G = dn.DynDiGraph()
>>> G.add_interaction(0, 1, t=0)
>>> G.has_node(0, t=0)
True