All versions of this documentation
Download code Jump to the code Open in the playground

Filter nodes

Filters can be applied to filter nodes from the graph. Filters use a function selector that returns a boolean indicating whether the node should be visible (true) or filtered out (false). In the following example, we use the function ogma.transformations.addNodeFilter to filter nodes having the category "COMPANY" and a funding_total property with a value over 300000000. It returns an object that is can be used later to remove the filter with filter.destroy().