Download Jar. Libraryless. Click here for Pure Java version (13172L/91K).
!7 sS inputDiagrams = [[ CirclesAndLines(circles=[Circle(text="A [Anything]", x=d("0.32"), y=d("0.55")), Circle(text="B [Anything]", x=d("0.68"), y=d("0.55"))], lines=[Arrow(a=t5, b=t26, text="is"), Arrow(a=t26, b=t5, text="then: is?")], title="A B B A") CirclesAndLines(circles=[Circle(quickvis="Philosophy", text="Philosophy", x=d("0.27"), y=d("0.47")), Circle(quickvis="Asking questions", text="Asking questions", x=d("0.75"), y=d("0.47"))], lines=[Arrow(a=t5, b=t30, text="is")], title="Philosophy") ]]; p { L<Web> webs = websFromCALStructures_vis(inputDiagrams); Web instructionWeb = first(webs); Web patternWeb = web_withoutRelationsStartingWith(instructionWeb, "Then:"); Web inputWeb = last(webs); Map<WebNode> map = web_matchAllPerms(patternWeb, inputWeb); if (map != null) print("Have match!"); else print("No match."); print(map); }
Began life as a copy of #1010298
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010323 |
Snippet name: | Test full match (match all permutations of a web with another web) [OK] |
Eternal ID of this version: | #1010323/10 |
Text MD5: | 264363a09133801d49df2c2ad9eb7df2 |
Transpilation MD5: | ade0f2e16113988068005c464faff2a5 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-11 21:58:29 |
Source code size: | 885 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 640 / 1423 |
Version history: | 9 change(s) |
Referenced in: | [show references] |