1 | static void web_printRelations(Web web) {
|
2 | L<Pair<WebNode>> relations = web_nonEmptyRelations(web); |
3 | if (nempty(relations)) {
|
4 | for (Pair<WebNode> p : relations) {
|
5 | WebNode rel = web.getRelation(p); |
6 | S lbl = rel.text(); |
7 | if (l(rel.labels) > 1) lbl += "+"; |
8 | printIndent(p.a.text() + " -> " + lbl + " -> " + p.b.text()); |
9 | } |
10 | print(); |
11 | } |
12 | } |
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: | 669 / 728 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |