def click(self, node):
if not self.has_node(node.id): return<EOL>if node == self.root: return<EOL>self._dx, self._dy = self.offset(node)<EOL>self.previous = self.root.id<EOL>self.load(node.id)<EOL>
Callback from graph.events when a node is clicked.