context free – Making a push down automaton 7-tuple into a diagram


Given a push down automaton

M = (K, Σ, Γ, Δ, s, F) where K = {p, q, r}, Σ = {a, b, c}, Γ = {a}, s = p, and F = {r}, with the transitions

((p, b, ε), (q, ε)), ((q, a, e,), (p, a)), ((p, c, a), (r, ε)), ((r, c, a), (r, ε))

How can I make this into a diagram?

This is what I have so far, with $ being the last element of the stack. enter image description here