code: def add_element(self, element):
          
          self.elements.append(element)
          self.type_graph.add_element(element)
docs: Add an element to this ComplexType and also append it to element dict
          of parent type graph.