返回

夏目友人帐之鲲鸣彭霜夏目贵志

首页
关灯
护眼
字体:
记录三百六十八 不小心落水了
上一页 目录 下一页
『章节错误,点此报送』
  um;i++){//建立数组

  weight[i].resize(vertexnum,intmax);

  path[i].resize(vertexnum,-1);

  }

  }

  voidgetData(){//获取数据

  ifstreamin("data");

  in>>vertexnum>>edgenum;

  initialvector();

  intfrom,to;

  doublew;

  while(in>>from>>to>>w){

  weight[from][to]=w;

  path[from][to]=from;//to的前继是from

  weight[from][from]=0;//自身到自身的权重为0

  path[from][from]=from;

  weight[to][to]=0;

  path[to][t
记录三百六十八 不小心落水了(2/3).继续阅读
《 加入书签,方便阅读 》
上一页 目录 下一页