Download Jar. Libraryless. Click here for Pure Java version (13172L/91K).
1 | !7 |
2 | |
3 | sS inputDiagrams = [[ |
4 | 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") |
5 | 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") |
6 | ]]; |
7 | |
8 | p { |
9 | L<Web> webs = websFromCALStructures_vis(inputDiagrams); |
10 | |
11 | Web instructionWeb = first(webs); |
12 | Web patternWeb = web_withoutRelationsStartingWith(instructionWeb, "Then:"); |
13 | Web inputWeb = last(webs); |
14 | |
15 | Map<WebNode> map = web_matchAllPerms(patternWeb, inputWeb); |
16 | if (map != null) print("Have match!"); else print("No match."); |
17 | print(map); |
18 | } |
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: | 642 / 1425 |
Version history: | 9 change(s) |
Referenced in: | [show references] |