Share Download code Jump to the code Open in the playground

Filter edges

Filters can be applied to filter edges from the graph. Filters use a function selector that returns a boolean indicating whether the edge should be visible (true) or filtered out (false). In the following example, we use the function ogma.transformation.createEdgeFilter to filter edges having a "properties.raised_amount_usd" data property with a value over 50000000. It returns an object that is can be used later to remove the filter by doing `filter.destroy()`.