Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void LabeledGraph::addNodes ( map< string, vector< string > >  labels  )  [inline]

Definition at line 16 of file LabeledGraph.h.

References addNode(), OglGui::Graph::ConnectNode(), and nodes.

Referenced by Impala::Application::MediaTable::GraphModule::NewWindow().

00016                                                            {
00017                 map<string, vector<string> >::iterator iter;
00018                 for(iter = labels.begin(); iter != labels.end(); iter++) {
00019                         string label = iter->first;
00020                         if(nodes.count(label) == 0) addNode(label);
00021                         for(uint i = 0; i < iter->second.size(); i++) {
00022                                 string related = iter->second[i];
00023                                 if(nodes.count(related) == 0) addNode(related);
00024                                 this->ConnectNode(nodes[label], nodes[related]);
00025                         }
00026                 }
00027         }

Here is the call graph for this function:


Generated on Fri Mar 19 10:32:24 2010 for ImpalaSrc by  doxygen 1.5.1