package nai5;

/**
 * @author Daniel "3ICE" Berezvai
 */
class Bridge{
  int from, to, profit;

  public Bridge(int from, int to, int profit){
    //az egyik part melyik pontjáról, a másik part melyik pontjára, mekkora haszonnal lehet hidat építeni
    this.from=from;
    this.to=to;
    this.profit=profit;
  }

  @Override
  public String toString(){
    return from+" "+to+" "+profit;
  }
}
