<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello Alpar, <br>
    <br>
    the small bit of code I'm using is : <br>
    <br>
    <font face="Courier New, Courier, monospace">void
      PCE_CHILD::sendTopologyInformationToParentPCE(){<br>
          //Create a full mesh graph<br>
      <br>
          ListGraph* g = new ListGraph();<br>
          ListGraph::NodeMap<int> * nodeMap = new
      ListGraph::NodeMap<int>(*g);<br>
          ListGraph::EdgeMap<int> * edgeMap = new
      ListGraph::EdgeMap<int>(*g);<br>
      <br>
          for(map<int,int>::iterator ii = nextToDCMapping.begin();
      ii!= nextToDCMapping.end(); ++ii){<br>
              ListGraph::Node DC = g->addNode();<br>
              ListGraph::Node OXC = g->addNode();<br>
              //Add the address as label to the vertex (node)<br>
              (*nodeMap)[DC] = (*ii).first;<br>
              (*nodeMap)[OXC] =(*ii).second;<br>
              ListGraph::Edge connEdge = g->addEdge(DC,OXC);<br>
              (*edgeMap)[connEdge] = 1;<br>
              for(ListGraph::NodeIt n(*g); n!= INVALID; ++n){<br>
                  ListGraph::Edge edge = g->addEdge(OXC,n);<br>
                  (*edgeMap)[edge]=1;<br>
              }<br>
          }<br>
      <br>
          cMessage* PCNtfMsg = new cMessage("PCNt");<br>
          PCNtfMsg->setKind(PCNtf);<br>
          PCNtfMsg->addPar("graph")= (ListGraph*) g;<br>
          PCNtfMsg->addPar("nodeMap") =
      (ListGraph::NodeMap<int>*) nodeMap;<br>
          PCNtfMsg->addPar("edgeMap")=
      (ListGraph::EdgeMap<int>*) edgeMap;<br>
          cGate* outGate = gate("toParentPCE$o");<br>
          send(PCNtfMsg,outGate);<br>
      <br>
      }</font><br>
    <br>
    Op 16/06/2011 17:46, Alpár Jüttner schreef:
    <blockquote cite="mid:1308239219.2756.20.camel@piko.site"
      type="cite">
      <pre wrap="">Hi,