maxitg / SetReplace

C++/Wolfram Language package for exploring set and graph rewriting systems
MIT License
219 stars 45 forks source link

EventsStatesPlotsList fails for empty sets #286

Closed maxitg closed 4 years ago

maxitg commented 4 years ago

"EventsStatesPlotsList" fails if empty set appears as an evolution state. This both occurs for the output empty state and the input empty state:

In[] := WolframModel[{{1, 2}} -> {}, {{1, 
   2}}, \[Infinity], "EventsStatesPlotsList"]
image
In[] := WolframModel[{} -> {{1, 2}}, {}, <|
  "MaxEvents" -> 1|>, "EventsStatesPlotsList"]
image

Expected behavior The output images (one of which is empty) should still be produced. No internal error messages should be generated.

Version (please complete the following information):

maxitg commented 4 years ago

Actually, the weed is at a lower level. WolframModelPlot treats {} as a list of zero graphs when parsing styles (but not when displaying the output) instead of a single empty hypergraph.