# dynetx.DynGraph.neighbors¶

DynGraph.neighbors(n, t=None)

Return a list of the nodes connected to the node n at time t.

Parameters: n (node) – A node in the graph t (snapshot id (default=None)) – If None will be returned the neighbors of the node on the flattened graph. nlist – A list of nodes that are adjacent to n. list NetworkXError – If the node n is not in the graph.

Examples

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