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

11
LINES

< > BotCompany Repo | #1009877 // web_forwardMultiMapByLabel - get forward relations of node as MultiMap by label

JavaX fragment (include)

1  
static MultiMap<S, WebNode> web_forwardMultiMapByLabel(WebNode n) {
2  
  Web web = n.web;
3  
  new MultiMap<S, WebNode> map;
4  
  for (WebNode b : web_allForwardRelated(n)) {
5  
    WebNode r = web.getRelation(n, b);
6  
    L<S> labels = web.unparseLabels(r.labels);
7  
    for (S label : labels)
8  
      map.put(label, b);
9  
  }
10  
  ret map;
11  
}

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: #1009877
Snippet name: web_forwardMultiMapByLabel - get forward relations of node as MultiMap by label
Eternal ID of this version: #1009877/4
Text MD5: 47dd501d6c03cf1ba11a556432e7661a
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-22 21:47:32
Source code size: 330 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 337 / 371
Version history: 3 change(s)
Referenced in: [show references]