NetworkArtist.draw_nodes

abstract NetworkArtist.draw_nodes(nodes=None, color=None, text=None)[source]

Draw the nodes of the network.

Parameters
  • nodes (list[int], optional) – The nodes to include in the drawing. Default is all nodes.

  • color (tuple[float, float, float] | dict[int, tuple[float, float, float]], optional) – The color of the nodes, as either a single color to be applied to all nodes, or a color dict, mapping specific nodes to specific colors.

  • text (dict[int, str], optional) – The text labels for the nodes as a text dict, mapping specific nodes to specific text labels.

Returns

list – The identifiers of the objects representing the nodes in the visualization context.