NetworkArtist.draw

NetworkArtist.draw(nodes=None, edges=None, nodecolor=None, edgecolor=None)[source]

Draw the network.

Parameters
  • nodes (list[int], optional) – A list of node identifiers. Default is None, in which case all nodes are drawn.

  • edges (list[tuple[int, int]], optional) – A list of edge keys (as uv pairs) identifying which edges to draw. The default is None, in which case all edges are drawn.

  • nodecolor (tuple[float, float, float] or dict[int, tuple[float, float, float]], optional) – The color specification for the nodes.

  • edgecolor (tuple[float, float, float] or dict[tuple[int, int], tuple[float, float, float]], optional) – The color specification for the edges.

Returns

None