Essentia  2.1-beta5-dev
graphutils.h File Reference
#include <vector>
#include <stack>
#include <string>
#include <algorithm>
#include "network.h"
#include "../streaming/streamingalgorithm.h"

Go to the source code of this file.

Classes

class  ReversePairCompare< T, U >
 

Namespaces

 essentia
 
 essentia::scheduler
 

Functions

template<typename NodeType >
void depthFirstApply (NodeType *root, void(*nodeFunc)(NodeType *node))
 
template<typename NodeType , typename MappedType >
std::vector< MappedType > depthFirstMap (NodeType *root, MappedType(*mapFunc)(NodeType *node))
 
template<typename NodeType >
NodeType * returnIdentity (NodeType *node)
 
template<typename NodeType >
std::vector< NodeType * > depthFirstSearch (NodeType *root)
 
std::string removeNodeIdFromName (const std::string &name)
 
std::pair< NetworkNode *, std::string > getIdentityAndName (NetworkNode *node)
 
streaming::Algorithm * returnAlgorithm (NetworkNode *node)
 
template<typename NodeType >
void adjacencyMatrix (const std::vector< std::pair< NodeType *, std::string > > &nodes, std::vector< std::vector< bool > > &adjMatrix)
 
template<typename NodeType >
void printAdjacencyMatrix (const std::vector< std::vector< bool > > &adjMatrix, const std::vector< std::pair< NodeType *, std::string > > &nodes)
 
template<typename NodeType >
bool areNetworkTopologiesEqual (NodeType *n1, NodeType *n2)