Skip to content

Instantly share code, notes, and snippets.

@coppeliaMLA
Created June 25, 2025 12:23
Show Gist options
  • Save coppeliaMLA/12e5c14e43ab188e64c04ff97b5a0402 to your computer and use it in GitHub Desktop.
Save coppeliaMLA/12e5c14e43ab188e64c04ff97b5a0402 to your computer and use it in GitHub Desktop.
digraph PurchaseFlow {
rankdir=TD;
edge [color="#333333", penwidth=1, arrowsize=1.2, arrowhead=onormal, style="dashed"];
splines=spline;
node [shape=box];
nodesep=0.8; // Increase horizontal spacing between nodes
ranksep=0.7;
// Node definitions with labels
A [label="available funds"];
B [label="purchases product"];
D [label="awareness of product"];
E [label="exposed to product elsewhere"];
F [label="product needs and wants"];
G [label="opportunity to purchase"];
I [label="time of year"];
J [label="views advert on channel"];
K [label="demographics"];
L [label="lifestyle"];
// Edge definitions (relationships)
A -> B [arrowtail=odot, dir=both, style=normal];
D -> B [style=normal];
E -> D [arrowtail=obox, dir=both, style=normal];
E -> F;
G -> B [arrowtail=odot, dir=both, style=normal];
F -> B [style=normal];
I -> F;
J -> D [arrowtail=obox, dir=both, style=normal];
J -> F;
K -> A;
K -> D;
K -> E;
K -> F;
K -> J;
K -> L;
L -> D;
L -> E;
L -> G;
L -> J;
I -> L;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment