dynetx.DynGraph.update_node_attr

DynGraph.update_node_attr(n, **data)

Updates the attributes of a specified node.

Parameters

n : node id **data : the attributes and their new values

Examples

>>> import dynetx as dn
>>> G = dn.DynGraph()
>>> G.add_node(0, Label="A")
>>> G.update_node_attr(0, Label="B")