static L<WebNode> web_starterNodes(Web web) { Set<WebNode> nodes = new LinkedHashSet(web_nodes(web)); for (Pair<WebNode> p : keys(web.relations)) if (nempty(web.getRelation(p).labels)) nodes.remove(p.b); ret asList(nodes); }
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: | #1010236 |
Snippet name: | web_starterNodes - nodes with no incoming relations |
Eternal ID of this version: | #1010236/2 |
Text MD5: | fe85aa498dc9afbb66370cdf0da04a80 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-07 17:16:32 |
Source code size: | 246 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 480 / 518 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1010240 - web_starterNode - return one starter node |