Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1010236 // web_starterNodes - nodes with no incoming relations

JavaX fragment (include)

1  
static L<WebNode> web_starterNodes(Web web) {
2  
  Set<WebNode> nodes = new LinkedHashSet(web_nodes(web));
3  
  for (Pair<WebNode> p : keys(web.relations))
4  
    if (nempty(web.getRelation(p).labels))
5  
      nodes.remove(p.b);
6  
  ret asList(nodes);
7  
}

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: 398 / 442
Version history: 1 change(s)
Referenced in: [show references]