//============================================================================= void CGraph::EdgeAddSymetric (INode * a, INode * b) { CNode * nodeA = CNode::From(a); CNode * nodeB = CNode::From(b); nodeA->AddNeighbor(nodeB); nodeB->AddNeighbor(nodeA); }
//============================================================================= void CGraph::EdgeAddDirected (INode * start, INode * end) { CNode * nodeStart = CNode::From(start); CNode * nodeEnd = CNode::From(end); nodeStart->AddNeighbor(nodeEnd); }