code: def getConnection(self, lfrom, lto):
          
          for connection in self.connections:
              if connection.fromLayer.name == lfrom and \
                 connection.toLayer.name == lto:
                  return connection
          raise NetworkError('Connection was not found.', (lfrom, lto))
docs: Returns the connection instance connecting the specified (string)
          layer names.