API Reference > OdDb Classes > OdDbGraph Class > OdDbGraph Methods > OdDbGraph::addEdge Method
OdDbGraph::addEdge Method
Syntax
C++
void addEdge(OdDbGraphNode* pFrom, OdDbGraphNode* pTo);
Parameters 
Description 
OdDbGraphNode* pFrom 
[in] Pointer to the GraphNode at the start of the edge.  
OdDbGraphNode* pTo 
[in] Pointer to the GraphNode at the end of the edge. 

Adds the specified edge to this Graph object. 

 

Creates an outgoing reference to *pTo in *pFrom, and an incoming reference to *pFrom in *pTo.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.