My Project
Functions
ComponentsLoop.h File Reference

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.

Detailed Description

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


Function Documentation

template<typename T , typename K >
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.

Parameters:
graphFull, disconnected network
funcFunction to call for each connected component
MyInstanceClustering Algorithm class instance to pass along to function
 All Classes Files Functions Variables Typedefs