Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.3 KB

File metadata and controls

35 lines (26 loc) · 1.3 KB

MultiwayQ

"MultiwayQ" checks if a given evolution contains multiway branching, i.e., there is an expression used in multiple events.

In[] := EchoFunction[#["ExpressionsEventsGraph"] &][
  WolframModel[{{1, 2}, {2, 3}} -> {{1, 2}, {2, 3}, {3, 4}},
               {{1, 2}, {2, 3}, {3, 4}},
               1,
               "EventSelectionFunction" -> "MultiwaySpacelike"]]["MultiwayQ"]

Out[] = True

Note that even if "EventSelectionFunction" is set to allow multiway branching, the system might still be singleway if no overlapping matches occurred:

In[] := EchoFunction[#["ExpressionsEventsGraph"] &][WolframModel[
  {{1, 2}} -> {{1, 3}, {3, 2}}, {{1, 1}}, 2, "EventSelectionFunction" -> "MultiwaySpacelike"]]["MultiwayQ"]

Out[] = False