code: def get_index_by_name(self, name):
          
          for i in range(len(self.vertices)):
              if self.vertices[i].name == name:
                  return i
          raise ValueError('Reverse look up of name failed.')
docs: Give the index associated with a given vertex name.