Node Filter
With this module the nodes of the Graph-Browser and its modules can be filtered by node types. It has a whitelist or a blacklist modus.
Name |
Type |
Description |
filterType |
string |
"whitelist" or "blacklist" (default) |
filterOnStart |
boolean |
If true, the module will filter the nodes on startup of the Graph-Browser |
filterNodeTypes |
Array |
The list of node types that should be filterd |
var graphSettings = {
graphContainer: 'graph-container',
moduleSettings: {'nodeFilter': {
filterNodeTypes: ['Image', 'User']
}
}
};
var graphBrowser = new GraphBrowser(graphSettings);
Name |
Parameters |
Description |
addNodeTypeToFilter(nodeType) |
{string} nodeType The node type to add |
Adds the given node type to the filter |
removeNodeTypeFromFilter |
{string} nodeType The node type to remove |
Removes the given node type from the filter |
setFilterType(filterType) |
{string} filterType The new filter type |
Changes the filter type to "whitelist" or "blacklist" |
clearFilterNodeTypes(filterType) |
|
Clears the node types of the filter |
filterGraph() |
|
Filters the graph. |