Advertisement
UF6

Proof Path Graphs

UF6
Jul 12th, 2022
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. rules = Flatten[With[{strings = Flatten[Table[StringJoin[#] & /@ Tuples[{"A", "B"}, i], {i, 1, 3}]]},Table[strings[[i]] <-> strings[[j]], {i, 1, Length[strings]}, {j,1, Length[strings]}]]]
  2.  
  3. h=[\[FilledSmallSquare]] TwoWayStringTokenEventGraph [{rules[[2]]},3,"Sorting"->True,];
  4. vertlist=DeleteCases[DeleteCases[#,_Integer]&/@VertexList[h],x_/;ResourceFunction["ContainsQ"][x,"Event"]];Table[Module[{h=[\[FilledSmallSquare]] TwoWayStringTokenEventGraph [{rules[[2]]},3,"Sorting"->True,],proofs},
  5. proofs=[\[FilledSmallSquare]] LiteralizeTwoWayRules /@[\[FilledSmallSquare]] FindTokenEventProof [h,{rules[[2]]},vertlist[[i]],8];
  6. proofgraphs=Graph[#]&/@proofs; HighlightGraph[GraphUnion@@proofgraphs,proofgraphs]],{i,2,Length[vertlist]}]
  7.  
  8. j=[\[FilledSmallSquare]] TwoWayStringTokenEventGraph [{rules[[110]]},3,"Sorting"->True,];
  9. vertlist=DeleteCases[DeleteCases[#,_Integer]&/@VertexList[j],x_/;ResourceFunction["ContainsQ"][x,"Event"]];Table[Module[{h=[\[FilledSmallSquare]] TwoWayStringTokenEventGraph [{rules[[110]]},3,"Sorting"->True,],proofs},
  10. proofs=[\[FilledSmallSquare]] LiteralizeTwoWayRules /@[\[FilledSmallSquare]] FindTokenEventProof [h,{rules[[110]]},vertlist[[i]],8];
  11. proofgraphs=Graph[#]&/@proofs;
  12. [\[FilledSmallSquare]] BranchialGraph [SimpleGraph[HighlightGraph[GraphUnion@@proofgraphs,proofgraphs]]]],{i,2,Length[vertlist]}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement