maxitg / SetReplace

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

HypergraphSubstitutionSystem #643

Open daneelsan opened 3 years ago

daneelsan commented 3 years ago

Changes

Comments

Examples

In[] := {{1, 2, 3}, {2, 4, 5}, {4, 6, 7}} //
    GenerateMultihistory[
      HypergraphSubstitutionSystem[ToPatternRules[{{1, 2, 3}, {2, 4, 5}} -> {{5, 6, 1}, {6, 4, 2}, {4, 5, 3}}]],
      {"MaxGeneration" -> 5, "MaxDestroyerEvents" -> 1},
      None,
      {"ReverseSortedInputTokenIndices", "InputTokenIndices", "RuleIndex"},
      {}
    ] // SetReplaceTypeConvert[{WolframModelEvolutionObject, 2}] //
      #["ExpressionsEventsGraph", VertexLabels -> "Index"] &
Example

This change is Reviewable