@RequestMapping(value = "/{id:.+}", method = RequestMethod.PUT)
 @ApiOperation(value = "Updates the Employee instance associated with the given id.")
 public Employee editEmployee(@PathVariable("id") Integer id, @RequestBody Employee instance)
     throws EntityNotFoundException {
   LOGGER.debug("Editing Employee with id: {}", instance.getId());
   instance.setId(id);
   instance = employeeService.update(instance);
   LOGGER.debug("Employee details with id: {}", instance);
   return instance;
 }
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("Vertex ").append(e.getId());
    sb.append(", h: ").append(height);
    sb.append(", e: ").append(excess);
    // sb.append(", currNeighbor: ").append(currNeighbor);
    // sb.append("\tneighbors: ").append(neighbors).append('\n');

    return sb.toString();
  }
  private void setupSourceSide(Set<Employee> emps) {
    for (Employee e : emps) {
      Vertex u = Vertex.vertexFromEmployee(e);
      LV.add(u);

      source.addToNeighbors(u);
      u.addToNeighbors(source);

      setCapacity(source, u, 1);
      setFlow(source, u, 1);
      u.setExcess(1);

      // Prioritize friend for initial flow
      if (e.getId() == ProjectParams.FRIEND_ID) {
        V.addFirst(u);
      } else {
        V.add(u);
      }
    }

    source.setExcess(source.getExcess() - source.getNumNeighbors());
  }
 public Integer getId() {
   return e.getId();
 }