ProbDataTSP.cpp File Reference
Detailed Description
C++ problem data for TSP.
Definition in file ProbDataTSP.cpp.
Go to the source code of this file.
Functions | |
static SCIP_RETCODE | copy_graph (GRAPH **graph, GRAPH *sourcegraph) |
Function Documentation
◆ copy_graph()
|
static |
copies given graph
- Parameters
-
graph pointer to store the copied graph sourcegraph graph to be copied
Definition at line 32 of file ProbDataTSP.cpp.
References GraphEdge::adjac, GraphEdge::back, create_graph(), GRAPH::edges, GraphNode::first_edge, GraphNode::id, GraphEdge::length, GraphEdge::next, NULL, SCIP_NOMEMORY, SCIP_OKAY, GraphNode::x, and GraphNode::y.
Referenced by tsp::ProbDataTSP::scip_copy(), and tsp::ProbDataTSP::scip_trans().