作者ric2k1 (Ric)
看板EE_DSnP
标题[公告] Homework #10 test graph generator available online
时间Thu Jan 3 22:16:52 2008
Please download it from the website.
Usage: genGraph <numNodes> <numLevels> <EdgesPerNode>
where <EdgesPerNode> is the average number of edges for each node.
Examples:
genGraph 10 5 3
genGraph 100 30 8
To specify parameters for the program, either run it on Linux or DOS console,
or in devC++: Executable --> Parameters, type in the parameters.
Please note that you can also output the graph to a file.
Please uncomment these two lines in main():
/* uncomment these two lines if you want to output to a file
ofstream ofile("test.txt");
ofile << gg;
*/
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.121.132.105