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

12
LINES

< > BotCompany Repo | #1010805 // web_printRelations

JavaX fragment (include)

static void web_printRelations(Web web) {
  L<Pair<WebNode>> relations = web_nonEmptyRelations(web);
  if (nempty(relations)) {
    for (Pair<WebNode> p : relations) {
      WebNode rel = web.getRelation(p);
      S lbl = rel.text();
      if (l(rel.labels) > 1) lbl += "+";
      printIndent(p.a.text() + " -> " + lbl + " -> " + p.b.text());
    }
    print();
  }
}

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: #1010805
Snippet name: web_printRelations
Eternal ID of this version: #1010805/2
Text MD5: b5f9382196eb9284a553c7da27528eaa
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-26 16:18:18
Source code size: 378 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 390 / 451
Version history: 1 change(s)
Referenced in: [show references]