Methods
addLine(startValue, endValue)
Connect two nodes by making a "line" form one to the other.
Parameters:
| Name | Type | Description |
|---|---|---|
startValue |
* | Start node of line |
endValue |
* | End node of line |
Throws:
-
Both nodes need to exist
- Type
- Error
addNode(value)
Add a node without any lines
Parameters:
| Name | Type | Description |
|---|---|---|
value |
* | Value for new node |
find(value) → {*}
Lookup nodes in the graph. Simply search through all nodes to find one with matching value.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
* | Value of node that should match |
Returns:
- Type
- *