Group Abstract Group Abstract

Message Boards Message Boards

Break out of a DepthFirstScan (DFS) when a condition is fullfiled?

Posted 6 years ago
POSTED BY: Dan Chevion
2 Replies
Posted 6 years ago

Thanks Rohit, Certainly I'll give it a try... Thanks again.

POSTED BY: Dan Chevion
Posted 6 years ago

Hi Dan,

I have not tested this, and it is probably not the best way.

In G add Throw["Done"] when the condition is satisfied and then Catch[DepthFirstScan[...]]

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