kinbaku.Graph.__setitem__

Graph.__setitem__(key, attr)[source]

Create/update node with custom attributes

Parameters
  • key (str) – node key

  • attr (dict) – attributes as provided in node_class

Returns

inserted node

Return type

node_class