Visualize
Basic plot
The function plot() plots the
graph using matplotlib and networkx in the background. The position
of the nodes can be set using a dictionary; otherwise, the positions are
calculated automatically. If the type of nodes (Exposure, Outcome,
.etc) were set (see Creating DAGs), by default the plot
includes a legend with the node types. There are many options for
customization. Check the documentation of
plot() for a comprehensive list
of options.

Bidirected edges are represented by default in the plot with dashed curved lines. In the context of causal inference with DAGs, by convention these arrows (often called "arcs") indicate a latent or unobserved common cause between the variables connected by the bidirected arrow. Alternatively, these variables can be included explicitly when creating the DAG.
Undirected edges, on the other hand, in the context of causal inference with DAGs, are used to represent the skeleton of the DAG or observationally equivalent edges. That is, they are edges whose direction cannot be decided inferentially using observational data unless other parametric assumptions are adopted.
Here is an example (the example is just for illustration; the types of edges have no meaning in the example):

Graph Styles
Default
There are some default styles provided by the package.

Rectangular
Retangular style gives more space for labels. But see also Node style.

Pearl
The "pearl" style uses the design adopted in Pearl
(2009). The position of the node label needs to
be adjusted manually. The label positions can be adjusted in block using
a float or individually using a dictionary. For instance,
node_label_adj_y={"Z":.1} adjusts only the y position of node ,
while node_label_adj_y=.1 adjusts it for all nodes.

[TODO]{.todo .TODO} Plot sub-DAG
[TODO]{.todo .TODO} Nodes
Node label
It is possible to use labels for the nodes. Labels accept LaTeX mathematical expressions. For instance, to use subscripts for some variables, we can set the labels as follows:

[TODO]{.todo .TODO} Node style
[TODO]{.todo .TODO} Edges
Edge style
References
- Pearl, J. (2009). Causality: Models, Reasoning and Inference. : Cambridge University Press.