I'm reading the Lawvere and Schanuel's "Conceptual mathematics", and could't solve both (a) and (b) of Exercise 8.
What I understood is below.
In a category of graph, an object is a graph, and a map is from graph to graph. Below image is a map $(f_A, f_D)$ of graph from $(X, Y, s, t)$ to $(X^{'}, Y^{'}, s^{'}, t^{'})$. In this map, $f_D s = s^{'} f_A$ and $f_D t = t^{'} f_A$ hold.
Suppose in graph $G$, $x$ represent any arrows(edges) whose source is $b$, and $y$ represent any arrows(edges) whose target is $e$. According to $f_D s = s^{'} f_A$, $f_D t = t^{'} f_A$, $f_D(b)=0$, and $f_D(e)=1$, I could show $s^{'}f_A(x)=0$ and $t^{'}f_A(y)=1$. So in graph $J$, $f_A(x)$ is equal to the arrow from 0, and $f_A(y)$ is equal to the arrow to 1.
Please give me advice to prove (a) and (b) of Exercise 8.


a) Let $b=a_0,a_1,\dots, a_n=e$ be (the vertices of) a path $b\leadsto e$ in $G$, and assume $f:G\to J$ is any map of the vertices of $G$ such that $f(b) =0$ and $f(e) =1$.
Then $f$ can't extend to a graph morphism: take the least index $k$ such that $f(a_k) =1$. Then $k>1$ and $f(a_{k-1}) =0$, and $G$ has an edge $a_{k-1}\to a_k$ but $J$ doesn't have an edge $0=f(a_{k-1})\to f(a_k) =1$.
b) Suppose $G$ has no path $b\leadsto e$, and let $E$ be the set of vertices from which there is a path to $e$, and let $B$ be the rest. We include the path of zero length as well, so that $e\in E$ and $b\in B$.
Note that for $p\in B$ and $q\in E$, there's a path $q\leadsto e$, so there can't be any path $p\leadsto q$, in particular $G$ has no edge $p\to q$.
Map now every vertex in $B$ to $0$ and every vertex in $E$ to $1$, and check that it yields a graph homomorphism $G\to J$.