The Pasting Lemma is inadequate in this case. However, a CW-complex $X$ has the "weak topology" with respect to its closed cells which means a subset $U \subset X$ is open in $X$ iff $U \cap e$ is open in $e$ for all closed cells $e$.
As a conseqeunce a function $f : X \to Y$ is continuous iff $f \mid_e : e \to Y$ is continuous for all closed cells $e$. You can apply this to your graph.