NetworkArtist.draw

NetworkArtist.draw(nodes: Optional[List[int]] = None, edges: Optional[Tuple[int, int]] = None, nodecolor: Optional[Union[str, Tuple[int, int, int], Tuple[float, float, float], List[Union[Tuple[int, int, int], Tuple[float, float, float]]], Dict[int, Union[Tuple[int, int, int], Tuple[float, float, float]]]]] = None, edgecolor: Optional[Union[str, Tuple[int, int, int], Tuple[float, float, float], List[Union[Tuple[int, int, int], Tuple[float, float, float]]], Dict[int, Union[Tuple[int, int, int], Tuple[float, float, float]]]]] = None) None[source]

Draw the network.

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

  • edges (list, 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 (rgb-tuple or dict of rgb-tuples, optional) – The color specification for the nodes.

  • edgecolor (rgb-tuple or dict of rgb-tuples, optional) – The color specification for the edges.