Download Jar. Uses 616K of libraries. Click here for Pure Java version (13602L/96K).
1 | !7 |
2 | |
3 | static Concepts concepts; |
4 | |
5 | p { |
6 | concepts = new Concepts(#1007609).load(); |
7 | Web web1 = getWeb(38), web2 = getWeb(35); |
8 | printWeb(web1); |
9 | printWeb(web2); |
10 | print("Merging."); |
11 | Web web = web_mergeWebs(web1, web2); |
12 | printWeb(web); |
13 | |
14 | print("Thinking."); |
15 | for (Pair<WebNode> p : web_relationsOfType(web, "IS")) { |
16 | web_copyRelations(p.a, p.b); |
17 | web_copyRelations(p.b, p.a); |
18 | } |
19 | |
20 | printWeb(web); |
21 | showCAL(webToCAL(web)); |
22 | } |
23 | |
24 | static Web getWeb(long drawingID) { |
25 | Drawing d = getConcept(concepts, Drawing, drawingID); |
26 | if (d == null) fail("Drawing " + drawingID + " not found"); |
27 | ret web_labelsToUpperCase(calToWeb(d.cal())); |
28 | } |
Began life as a copy of #1009964
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: | #1009975 |
Snippet name: | Think about diagrams 2 [merging two diagrams, OK] |
Eternal ID of this version: | #1009975/3 |
Text MD5: | 7a0495b7fcbd36ef67594ba9b1de9907 |
Transpilation MD5: | 5af7d0ba3ccf9dba5a055492b1550104 |
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-08-27 23:54:16 |
Source code size: | 669 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 570 / 1356 |
Version history: | 2 change(s) |
Referenced in: | [show references] |