File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -281,14 +281,14 @@ function assert_rooted_tree(adj_list::AbstractVector{<:AbstractVector})
281
281
if visited[child] == false
282
282
visited[child] = true
283
283
else # node was visited before
284
- throw (ArgumentError (" Pathes not unique ( $child has multiple parent nodes) !" ))
284
+ throw (ArgumentError (" Buchheim assumption broken, this is not a rooted tree: Node $child has multiple parent nodes!" ))
285
285
end
286
286
end
287
287
end
288
288
if visited[1 ] != = false
289
- throw (ArgumentError (" Node 1 needs to be the root!" ))
289
+ throw (ArgumentError (" Buchheim assumption broken, this is not a rooted tree: Node 1 needs to be the root!" ))
290
290
end
291
291
if ! all (view (visited, 2 : lastindex (visited)))
292
- throw (ArgumentError (" Some nodes are not part of the tree." ))
292
+ throw (ArgumentError (" Buchheim assumption broken, this is not a rooted tree: Some nodes are not part of the tree." ))
293
293
end
294
294
end
You can’t perform that action at this time.
0 commit comments