code: def get_topology(self):
          
          topology = {'name': self._name,
                      'resources_type': 'local',
                      'topology': {},
                      'type': 'topology',
                      'version': '1.0'}
  
          if self._links:
              topology['topology']['links'] = self._links
          if self._nodes:
              topology['topology']['nodes'] = self._nodes
          if self._servers:
              topology['topology']['servers'] = self._servers
          if self._notes:
              topology['topology']['notes'] = self._notes
          if self._shapes['ellipse']:
              topology['topology']['ellipses'] = self._shapes['ellipse']
          if self._shapes['rectangle']:
              topology['topology']['rectangles'] = \
                  self._shapes['rectangle']
          if self._images:
              topology['topology']['images'] = self._images
  
          return topology
docs: Get the converted topology ready for JSON encoding
  
          :return: converted topology assembled into a single dict
          :rtype: dict