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)

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