https://www.space.ntu.edu.tw/navigate/s?u=GLQQYGMIW6
上面的網址是我的dg1000的max flow
但是我在讀檔的時候發生了問題:
graphlab output:
test.bat 12> is_flow -s v0 -t v999 -i outputs/dg1000_mf.dot
944,0//this
輸出this部分的來源是:
user_cmd.cpp
...
FILE* fin1;
char buffer[200]="";
sprintf(buffer,"../%s",argv[6]);
fin1=fopen(buffer,"r");
unsigned int linecount=0;
int num1=0,num2=0,num3=0;
fgets(buffer,200,fin1);
vector<int> load;
while(!feof(fin1))
{
fgets(buffer,200,fin1);
int test=0;
num1=0;num2=0;num3=0;
if(test=sscanf(buffer,"v%d -> v%d [label = \"%d\"];",&num1,&num
2,&num3))
{
load.push_back(num1);
load.push_back(num2);
load.push_back(num3);
}
}
cout<<num1<<","<<num2<<endl;
...