Class: edge

edge(subject, object, predicateopt) → {this}

new edge(subject, object, predicateopt) → {this}

Sublcass of bbop-graph.edge for use with Noctua ideas and concepts.
Parameters:
Name Type Attributes Description
subject String required subject id
object String required object id
predicate String <optional>
preidcate id; if not provided, will use defined default (you probably want to provide one--explicit is better)
Source:
See:
  • module:bbop-graph
Returns:
Type
this

Methods

clone() → {edge}

Get a fresh new copy of the current edge--no shared structure.
Source:
Returns:
- new copy of edge
Type
edge

id() → {String}

Access to the immutable "id".
Source:
Returns:
string
Type
String

label(valueopt) → {String|null}

Access to the mutable "label" for the edge.
Parameters:
Name Type Attributes Description
value String <optional>
lbl
Source:
Returns:
string
Type
String | null

relation(valueopt) → {String}

Get/set "relation" of edge.
Parameters:
Name Type Attributes Description
value String <optional>
string
Deprecated:
  • Yes
Source:
Returns:
string
Type
String

source(valueopt) → {String}

Get/set "source" of edge.
Parameters:
Name Type Attributes Description
value String <optional>
string
Deprecated:
  • Yes
Source:
Returns:
string
Type
String

target(valueopt) → {String}

Get/set "target" of edge.
Parameters:
Name Type Attributes Description
value String <optional>
string
Deprecated:
  • Yes
Source:
Returns:
string
Type
String