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

12
LINES

< > TinyBrain | #1010374 - web_addRelation

JavaX fragment (include)

static void web_addRelation(WebNode a, WebNode b, S rel) {
  if (a != null && b != null && rel != null)
    a.web.getRelation(a, b).addLabel(rel);
}

static void web_addRelation(Web web, S a, S b, S rel) {
  web_addRelation(web.node(a), web.node(b), rel);
}

static void web_addRelation(WebNode a, S rel, WebNode b) {
  web_addRelation(a, b, rel);
}

download  show line numbers  debug dex   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

No comments. add comment

Snippet ID: #1010374
Snippet name: web_addRelation
Eternal ID of this version: #1010374/4
Text MD5: 061c72e925360fcddcafac81b61620ac
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-08 23:54:29
Source code size: 360 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 27 / 39
Version history: 3 change(s)
Referenced in: [show]