语句cyaron.Graph.DAG(10, 90, repeated_edges=False) 将导致无限循环。
|
if not repeated_edges: |
|
max_edge = Graph._calc_max_edge(point_count, not loop, self_loop) |
|
if edge_count > max_edge: |
|
raise Exception( |
|
"the number of edges of this kind of graph which has %d vertexes must be less than or equal to %d." |
|
% (point_count, max_edge)) |
|
|
应把 610 行的 not loop 换成 loop。
语句
cyaron.Graph.DAG(10, 90, repeated_edges=False)将导致无限循环。cyaron/cyaron/graph.py
Lines 609 to 615 in 0865426
应把 610 行的
not loop换成loop。