def adjacent(self, node_a, node_b):
neighbors = self.neighbors(node_a)<EOL>return node_b in neighbors<EOL>
Determines whether there is an edge from node_a to node_b.
        Returns True if such an edge exists, otherwise returns False.