code: def variable_node(self, var):
          
          for n in self.nodes:
              if n.variable == var:
                  return n
          raise Exception("No such variable: %s" % var)
docs: Return the node for the variable named var.
          >>> burglary.variable_node('Burglary').variable
          'Burglary