<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_edge(self, p_from, p_to):
 """ Returns True when the graph has the given edge. """

        return p_from in self._edges and p_to in self._edges[p_from]