Message Boards Message Boards

Avoid crash while using FindCycle in the following code?

Posted 6 years ago

Mathematica 11.3.0.0 Windows 10 64

Can anybody verify that in the following code the FindCycle statement either aborts with the result: "$Aborted[]" or it kills the Kernel outright.

ma = 300; da1 = Flatten[Table[ {(1 + 2 a1)^2/2 + (1 + 2 a2)^2/2, 2 (a2 (a2 + 1) - a1 - a1^2)} , {a2, ma}, {a1, 0, Floor[1/2 (-1 + Sqrt[-1 + 4 a2 + 4 a2^2])]}], 1]; da2 = Flatten[Table[ {(a1^2 + a2^2) 2, (a2^2 - a1^2) 2} , {a2, ma}, {a1, a2 - 1}], 1]; da = Transpose[Join[da1, da2]]; gr = Graph [Thread[da[[1]] -> da[[2]]]]; FindCycle[gr]

POSTED BY: Daniel Huber
3 Replies
POSTED BY: l van Veen
POSTED BY: Sjoerd de Vries

Not on my pc right now so I can’t test it, but I reported very similar issues with FindCycle in 2015, more than 3 years ago [CASE:2934278]

POSTED BY: Sjoerd de Vries
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract