I'm working through the beginnings of the graph theory necessary for pasting diagrams in $2$-categories using Johnson and Yau's 2-Dimensional Categories, and I'm not quite sure what the relation they're using to quotient by for their geometric realization is. For reference:
Definition. A graph $G$ is a triplet $(V_G,E_G,\psi_G)$ where $V_G$ is a finite set called the set of vertices, $E_G$ is a finite set called the set of edges, and $\psi_G:E_G\to V_G\times V_G$ is a function called the incidence function. The geometric realization of $G$, denoted $|G|$, is the topological quotient $$|G|=\Big[\big(\coprod_{v\in V_G}\{v\}\big)\coprod\big(\coprod_{c\in E_G}[0,1]_e\big)\Big]\big/\sim$$ where $\{v\}$ is a one point space indexed by a vertex $v\in V_G$, $[0,1]_e$ is a copy of the unit interval indexed by an edge $e\in E_G$, and the identification $\sim$ is generated by $$u\sim0\in[0,1]_e\ni1\sim v\ \ \ \ \text{if}\ \ \ \ \psi_G(e)=(u,v).$$
What is the equivalence relation $\sim$?
Unless I'm mistaken $\coprod_{v\in V_G}\{v\}$ is homeomorphic to $V_G$ with the discrete topology and $$\coprod_{e\in E_G}[0,1]_e=\{(e,x):x\in[0,1]_e\}$$ with open sets of the form $$U=\coprod_{e\in I}(a_e,b_e)$$ (endpoints $[0$ and $1]$ allowed) for some subset $I\subseteq E_G$, so the coproduct of these sets should be $$X=\big(\coprod_{v\in V_G}\{v\}\big)\coprod\big(\coprod_{c\in E_G}[0,1]_e\big)=\{(n,y):(n=0\wedge y\in\coprod_{v\in V_G}\{v\})\vee(n=1\wedge y\in\coprod_{c\in E_G}[0,1]_e)\}$$ with opens of the form $$V\coprod U$$ with $V\subseteq V_G$ and $U$ as above, so I would expect the relation $\sim$ to be expressible as a subset of $X\times X$ but I can't see exactly how to get there from their definition. Any assistance is appreciated.