code: public Layer getLayer(String name) {
          Preconditions.checkState(verticesMap.containsKey(name), "Layer with name %s does not exist in the network", name);
          return verticesMap.get(name).getLayer();
      }
docs: Get a given layer by name.