/** * Adds a call to the graph. * A call is made between two functions, the caller and the callee. * @param data Contains information on the call */ void GraphWidget::addCall(const CallData& data) { GraphNode* pCaller, * pCallee; GraphEdge* pEdge; // Find the relevant nodes (create new nodes if necessary) pCaller = addNode(data.m_sCaller); pCallee = addNode(data.m_sCallee); // Create a new edge pEdge = pCaller->addOutEdge(pCallee); pEdge->setCallInfo(data.m_sFile, data.m_sLine, data.m_sText); }