Graph

new Graph()

Create a new Table using D3.

Classes

Graph

Methods

clear()

Remove nodes and lines from the SVG.

getLinksByIndex(d) → {Array.<object>}

Get all of the links associated with a node by node index.

Parameters:
NameTypeDescription
dnumber

the index of the node

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:
NameTypeDescription
urinumber

the uri of the node

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:
NameTypeDescription
dnumber

the index of the node

Returns:

return the object that represents the datum of a node

Type: 
object

getNodeByUri(uri) → {object|undefined}

Get a data node by uri.

Parameters:
NameTypeDescription
urinumber

the uri of the node

Returns:

return the object that represents the datum of a node

Type: 
object | undefined