Graph edge base class.  
 More...
#include <gograph.h>
|  | 
| void | setNodes (NodeType *n1, NodeType *n2) | 
|  | 
| NodeType * | getOtherNode (const NodeType *askingNode) | 
|  | 
| goIndex_t | getIndex (const NodeType *askingNode) | 
|  | Get index of this edge in adj array.  More... 
 | 
|  | 
| void | setIndex (goIndex_t i1, goIndex_t i2) | 
|  | Set index of this edge in adjelements of nodes.  More...
 | 
|  | 
|  | 
|  | goGraphEdge (NodeType *n1=0, NodeType *n2=0) | 
|  | 
|  | 
| NodeType * | myNode1 | 
|  | 
| NodeType * | myNode2 | 
|  | 
| goIndex_t | myIndex1 | 
|  | 
| goIndex_t | myIndex2 | 
|  | 
template<class NodeType>
class goGraphEdge< NodeType >
Graph edge base class. 
Use derived classes with goGraphAlgorithm. 
◆ getIndex()
template<class NodeType> 
  
  | 
        
          | goIndex_t goGraphEdge< NodeType >::getIndex | ( | const NodeType * | askingNode | ) |  |  | inline | 
 
Get index of this edge in adj array. 
- Parameters
- 
  
    | askingNode | Node that is asking. |  
 
- Returns
- The index of this edge in the adj array of askingNode.
 
 
◆ setIndex()
template<class NodeType> 
  
  | 
        
          | void goGraphEdge< NodeType >::setIndex | ( | goIndex_t | i1, |  
          |  |  | goIndex_t | i2 |  
          |  | ) |  |  |  | inline | 
 
Set index of this edge in adj elements of nodes. 
- See also
- getIndex()
- Parameters
- 
  
  
 
 
The documentation for this class was generated from the following file: