include(joinpath(dirname(Base.active_project()), "scripts", "book_bootstrap.jl"))
@auto_using DAGMakie CairoMakie Graphs
# Nodes: 1=W, 2=C, 3=C*, 4=F [, 5=Z]
g_mcar = SimpleDiGraph(4)
add_edge!(g_mcar, 1, 2); add_edge!(g_mcar, 2, 3); add_edge!(g_mcar, 4, 3)
g_mar = SimpleDiGraph(4)
add_edge!(g_mar, 1, 2); add_edge!(g_mar, 2, 3); add_edge!(g_mar, 4, 3); add_edge!(g_mar, 1, 4)
g_conf = SimpleDiGraph(5)
add_edge!(g_conf, 1, 2); add_edge!(g_conf, 2, 3); add_edge!(g_conf, 4, 3)
add_edge!(g_conf, 5, 2); add_edge!(g_conf, 5, 4)
g_mnar = SimpleDiGraph(4)
add_edge!(g_mnar, 1, 2); add_edge!(g_mnar, 2, 3); add_edge!(g_mnar, 4, 3); add_edge!(g_mnar, 2, 4)
layout4 = Point2f[Point2f(0.0, 1.0), Point2f(1.2, 1.0), Point2f(1.2, 0.0), Point2f(0.0, 0.0)]
layout5 = Point2f[Point2f(0.0, 1.0), Point2f(1.4, 1.0), Point2f(1.4, 0.0), Point2f(0.0, 0.0), Point2f(0.7, 0.5)]