gb_miles.ch

来自「模拟器提供了一个简单易用的平台」· CH 代码 · 共 42 行

CH
42
字号
@x l.14extern Graph *miles();@yextern Graph *miles(unsigned long,long,long,long,@|  unsigned long,unsigned long,long);@z@x l.116Graph *miles(n,north_weight,west_weight,pop_weight,    max_distance,max_degree,seed)  unsigned long n; /* number of vertices desired */  long north_weight; /* coefficient of latitude in the weight function */  long west_weight; /* coefficient of longitude in the weight function */  long pop_weight; /* coefficient of population in the weight function */  unsigned long max_distance; /* maximum distance in an edge, if nonzero */  unsigned long max_degree;       /* maximum number of edges per vertex, if nonzero */  long seed; /* random number seed */@yGraph *miles(@t\1\1@>  unsigned long n, /* number of vertices desired */  long north_weight, /* coefficient of latitude in the weight function */  long west_weight, /* coefficient of longitude in the weight function */  long pop_weight, /* coefficient of population in the weight function */  unsigned long max_distance, /* maximum distance in an edge, if nonzero */  unsigned long max_degree, /* maximum number of edges per vertex, if nonzero */  long seed@t\2\2@>) /* random number seed */@z@x l.394@p long miles_distance(u,v)  Vertex *u,*v;@y@p long miles_distance(Vertex *u,Vertex *v)@z@x l.401extern long miles_distance();@yextern long miles_distance(Vertex *,Vertex *);@z

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?