Node Filter

Search
Feedback

This module is an addition to the Node Expander Module. When used, the newly loaded nodes can be filtered by their types.

Dependencies for this module:

  • jquery
  • sigma.min.js
  • graph.browser.core.js
  • graph.browser.modulecontrol.js
  • graph.browser.module.nodefilter.js

Settings

type description
array Every nodetype specified in this array can and will not be added to the graph view. An exception are the node, that are added with the native methods `addNode(node)` of the Graph-Browser

Example

var graphSettings = {
    graphContainer: 'graph-container',
    moduleSettings: {'nodeFilter': ['Image', 'User'] }
};

var graphBrowser = new GraphBrowser(graphSettings);

In this example no nodes with the type image or User can be added to the graph view.

Graph-Browser

About this article
Last change 2016-08-29
Topics ExperimentalStructr 2.0