If there is no cycle through $e$ and $g$, then all paths go through the same vertex
No cycle containing edges $e$ and $g$ implies there is a vertex $u$ so that every path sharing one end with $e$ and another with $g$ contains $u$