-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Changes * Adds a new `WolframModelEvolutionObject` property, `"MultiwayQ"`, which checks if any expressions were destroyed by multiple events. ## Examples * Check that a particular system does not branch: ```wl In[] := WolframModel[{{1, 2}} -> {{1, 3}, {3, 2}}, {{1, 1}}, 2, "EventSelectionFunction" -> "MultiwaySpacelike"]["MultiwayQ"] Out[] = False ```
- Loading branch information
Showing
7 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions
33
...AndFunctions/WolframModelAndWolframModelEvolutionObject/Properties/MultiwayQ.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
###### [Symbols and Functions](/README.md#symbols-and-functions) > [WolframModel and WolframModelEvolutionObject](../WolframModelAndWolframModelEvolutionObject.md) > [Properties](../WolframModelAndWolframModelEvolutionObject.md#properties) > | ||
|
||
# MultiwayQ | ||
|
||
**`"MultiwayQ"`** checks if a given evolution contains multiway branching, i.e., there is an expression used in multiple events. | ||
|
||
```wl | ||
In[] := EchoFunction[#["ExpressionsEventsGraph"] &][ | ||
WolframModel[{{1, 2}, {2, 3}} -> {{1, 2}, {2, 3}, {3, 4}}, | ||
{{1, 2}, {2, 3}, {3, 4}}, | ||
1, | ||
"EventSelectionFunction" -> "MultiwaySpacelike"]]["MultiwayQ"] | ||
``` | ||
|
||
<img src="/Documentation/Images/MultiwayExpressionsEventsGraphEchoed.png" width="451"> | ||
|
||
```wl | ||
Out[] = True | ||
``` | ||
|
||
Note that even if [`"EventSelectionFunction"`](/Documentation/WolframModelAndWolframModelEvolutionObject/Options/EventSelectionFunction.md) is set to allow multiway branching, the system might still be singleway if no overlapping matches occurred: | ||
|
||
|
||
```wl | ||
In[] := EchoFunction[#["ExpressionsEventsGraph"] &][WolframModel[ | ||
{{1, 2}} -> {{1, 3}, {3, 2}}, {{1, 1}}, 2, "EventSelectionFunction" -> "MultiwaySpacelike"]]["MultiwayQ"] | ||
``` | ||
|
||
<img src="/Documentation/Images/SinglewayExpressionsEventsGraphEchoed.png" width="415"> | ||
|
||
```wl | ||
Out[] = False | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters