Classes
Methods
clear()
Remove nodes and lines from the SVG.
- Source
 
getLinksByIndex(d) → {Array.<object>}
Get all of the links associated with a node by node index.
Parameters:
| Name | Type | Description | 
|---|---|---|
d | number | the index of the node  | 
- Source
 
Returns:
return the objects that represents the datum of the links connected to a node
- Type:
 - Array.<object>
 
getLinksByUri(uri) → {Array.<object>}
Get all of the links associated with a node by node uri.
Parameters:
| Name | Type | Description | 
|---|---|---|
uri | number | the uri of the node  | 
- Source
 
Returns:
return the objects that represents the datum of the links connected to a node
- Type:
 - Array.<object>
 
getNodeByIndex(d) → {object}
Get a data node by index.
Parameters:
| Name | Type | Description | 
|---|---|---|
d | number | the index of the node  | 
- Source
 
Returns:
return the object that represents the datum of a node
- Type:
 - object
 
getNodeByUri(uri) → {object|undefined}
Get a data node by uri.
Parameters:
| Name | Type | Description | 
|---|---|---|
uri | number | the uri of the node  | 
- Source
 
Returns:
return the object that represents the datum of a node
- Type:
 - object |
undefined