connected.cc File Reference
#include "connected.h"
Functions | |
static SDFactors | getAdjacentActors (SDFactor *a) |
static void | connectedVisit (SDFactor *u, v_int &color) |
bool | isConnected (SDFgraph *g) |
Function Documentation
connectedVisit () The visitor function of the DFS algorithm.
References getAdjacentActors(), SDFcomponent::getId(), and v.
Referenced by isConnected().
getAdjacentActors () The function returns a list with actors directly reachable from actor a. The graph is considered to be undirected.
References SDFport::getChannel(), SDFchannel::getDstActor(), SDFchannel::getSrcActor(), SDFport::getType(), SDFactor::portsBegin(), and SDFactor::portsEnd().
Referenced by connectedVisit().
bool isConnected | ( | SDFgraph * | g | ) |
isConnected () The function returns true if the SDF graph is connected, else it returns false.
A graph is connected if a DFS on the undirected graph from an arbitrary node visits all nodes in the graph.
References a, SDFgraph::actorsBegin(), SDFgraph::actorsEnd(), color, connectedVisit(), SDFcomponent::getId(), and SDFgraph::nrActors().
Referenced by analyzeSDFG().