You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a loop in a diagram and try to use RSDominanceTreeLayout, it causes infinite loop. An example:
c := RSCanvas new.
b1 := RSBox new.
b2 := RSBox new.
b3 := RSBox new.
boxes := { b1. b2. b3 }.
a1 := RSLine new from: b1; to: b2; yourself.
a2 := RSLine new from: b2; to: b3; yourself.
a3 := RSLine new from: b3; to: b1; yourself.
edges := { a1. a2. a3 }.
c addAll: boxes; addAll: edges.
RSDominanceTreeLayout new
on: boxes edges: edges.
Question is, whether dominance tree layout even makes sense for diagrams with loops. If not, maybe a detection and error might be nicer than Pharo freeze?
However, it worked with Roassal2.
The text was updated successfully, but these errors were encountered:
JanBliznicenko
changed the title
RSDominanceTreeLayout freezes (infinite loop) with loop in diagram
RSDominanceTreeLayout freezes (infinite recursion) with loop in diagram
Nov 30, 2023
If you have a loop in a diagram and try to use
RSDominanceTreeLayout
, it causes infinite loop. An example:Question is, whether dominance tree layout even makes sense for diagrams with loops. If not, maybe a detection and error might be nicer than Pharo freeze?
However, it worked with Roassal2.
The text was updated successfully, but these errors were encountered: