1 | static Pair<WebNode> web_bestNodeMatch(Web a, Web b) { |
2 | new Best<Pair<WebNode>> best; |
3 | |
4 | for (WebNode n : web_nodes(a)) { |
5 | new HashSet<WebNode> candidates; |
6 | for (Lisp l : n.labels()) |
7 | candidates.addAll(b.index.get(l)); |
8 | for (WebNode c : candidates) |
9 | best.put(pair(n, c), web_numberOfSharedLabels(n, c)); |
10 | } |
11 | |
12 | ret best!; |
13 | } |
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: | #1010596 |
Snippet name: | web_bestNodeMatch |
Eternal ID of this version: | #1010596/2 |
Text MD5: | 6635f85fbf6d7c63c2c96e616681b2f8 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-27 22:41:06 |
Source code size: | 359 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 449 / 474 |
Version history: | 1 change(s) |
Referenced in: | [show references] |