filterGraph
* The function void filterGraph(_GraphStructure& graph, _NodePredicate _nodePred) will filter out all nodes which satisfy the criteria which makes_NodePredicate return 'true'. NodePredicate is any function object that takes a_GraphStructure::Node as a paramater and returns a bool. In order for this to work a function_GraphStructure::DeleteNode must be implemented in order to Delete the nodes. This exact function is implemented asprotected in IDGraphCreateTemplate so it should be easy.*
Synopsis
Declared in <graphs/GraphUpdate.h>
template<
typename _GraphStructure,
typename _NodePredicate>
void
filterGraph(
_GraphStructure& graph,
_NodePredicate _nodePred);
Description
Filter nodes from a graph.
Parameters
Name |
Description |
graph |
Graph to filter in place. |
_nodePred |
Predicate selecting nodes to remove. |
Created with MrDocs