|
My Project
|
Considers network a set of connected components. More...
#include "MyTools.h"Go to the source code of this file.
Functions | |
| template<typename T , typename K > | |
| bool | ForEachComponent (map< T, map< T, K > > *graph, bool(*func)(map< T, map< T, K > > *Component, void *instance), void *MyInstance) |
| Calls a function for each component of a network. | |
Considers network a set of connected components.
This file holds functions to handle the case where an unconnected network needs to be clustered by an algorithm that requires connectivity
| bool ForEachComponent | ( | map< T, map< T, K > > * | graph, |
| bool(*)(map< T, map< T, K > > *Component, void *instance) | func, | ||
| void * | MyInstance | ||
| ) |
Calls a function for each component of a network.
| graph | Full, disconnected network |
| func | Function to call for each connected component |
| MyInstance | Clustering Algorithm class instance to pass along to function |
1.7.6.1