<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_isolated(self, p_id):
 """ Returns True iff the given node has no incoming or outgoing edges. """

        return(len(self.incoming_neighbors(p_id)) == 0
               and len(self.outgoing_neighbors(p_id)) == 0)