def link(self, node, hyperedge):
if (hyperedge not in self.node_links[node]):<EOL><INDENT>self.edge_links[hyperedge].append(node)<EOL>self.node_links[node].append(hyperedge)<EOL>self.graph.add_edge(((node,'<STR_LIT:n>'), (hyperedge,'<STR_LIT:h>')))<EOL><DEDENT>else:<EOL><INDENT>raise AdditionError("<STR_LIT>" % (node, hyperedge))<EOL><DEDENT>
Link given node and hyperedge.

@type  node: node
@param node: Node.

@type  hyperedge: node
@param hyperedge: Hyperedge.