dynetx.DynGraph.update_node_attr_from

DynGraph.update_node_attr_from(nlist, **data)

Updates the attributes of a specified node.

Parameters

nlist : list of node ids **data : the attributes and their new values

Examples

>>> import dynetx as dn
>>> G = dn.DynGraph()
>>> G.add_nodes_from([0, 1, 2], Label="A")
>>> G.update_node_attr_from([0, 2], Label="B")