def edge(self, id1, id2):
if id1 in self andid2 in self andself[id2] in self[id1].links:<EOL><INDENT>return self[id1].links.edge(id2)<EOL><DEDENT>return None<EOL>
Returns the edge between the nodes with given id1 and id2.