All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Detailed DescriptionFunction Documentation
creates directed graph structure
Definition at line 5326 of file misc.c. References BMSallocClearMemoryArray, BMSallocMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by presolComponents(), and sortGenVBounds().
resize directed graph structure
Definition at line 5354 of file misc.c. References SCIP_Digraph::arcdatas, BMSreallocMemoryArray, SCIP_Digraph::nnodes, SCIP_Digraph::nodedatas, SCIP_Digraph::nsuccessors, NULL, SCIP_ALLOC, SCIP_OKAY, SCIP_Digraph::successors, and SCIP_Digraph::successorssize.
copies directed graph structure
Definition at line 5386 of file misc.c. References SCIP_Digraph::arcdatas, BMSallocClearMemoryArray, BMSallocMemory, BMSduplicateMemoryArray, SCIP_Digraph::components, SCIP_Digraph::componentstarts, SCIP_Digraph::ncomponents, SCIP_Digraph::nnodes, SCIP_Digraph::nsuccessors, NULL, SCIP_ALLOC, SCIP_OKAY, and SCIP_Digraph::successors.
sets the sizes of the successor lists for the nodes in a directed graph and allocates memory for the lists
Definition at line 5442 of file misc.c. References SCIP_Digraph::arcdatas, BMSallocMemoryArray, SCIP_Digraph::nnodes, SCIP_Digraph::nsuccessors, NULL, SCIP_ALLOC, SCIP_OKAY, SCIP_Digraph::successors, and SCIP_Digraph::successorssize. Referenced by presolComponents().
frees given directed graph structure
Definition at line 5464 of file misc.c. References BMSfreeMemory, BMSfreeMemoryArray, BMSfreeMemoryArrayNull, NULL, and SCIPdigraphFreeComponents(). Referenced by presolComponents(), and sortGenVBounds().
add (directed) arc and a related data to the directed graph structure
Definition at line 5535 of file misc.c. References SCIP_Digraph::arcdatas, ensureSuccessorsSize(), SCIP_Digraph::nsuccessors, NULL, SCIP_CALL, SCIP_OKAY, and SCIP_Digraph::successors. Referenced by fillDigraph(), SCIPdigraphComputeUndirectedComponents(), and sortGenVBounds().
add (directed) arc to the directed graph structure, if it is not contained, yet
Definition at line 5563 of file misc.c. References SCIP_Digraph::arcdatas, ensureSuccessorsSize(), SCIP_Digraph::nsuccessors, NULL, SCIP_CALL, SCIP_OKAY, and SCIP_Digraph::successors.
returns the number of nodes of the given digraph
Definition at line 5597 of file misc.c. References SCIP_Digraph::nnodes, and NULL.
returns the node data, or NULL if no data exist
Definition at line 5607 of file misc.c. References SCIP_Digraph::nodedatas, and NULL.
sets the node data sets the node data
Definition at line 5623 of file misc.c. References SCIP_Digraph::nodedatas, and NULL.
returns the total number of arcs in the given digraph
Definition at line 5637 of file misc.c. References SCIP_Digraph::nnodes, SCIP_Digraph::nsuccessors, and NULL.
returns the number of successor nodes of the given node
Definition at line 5655 of file misc.c. References SCIP_Digraph::nsuccessors, NULL, and SCIP_Digraph::successorssize.
returns the array of indices of the successor nodes; this array must not be changed from outside
Definition at line 5670 of file misc.c. References SCIP_Digraph::nsuccessors, NULL, SCIP_Digraph::successors, and SCIP_Digraph::successorssize.
returns the array of datas corresponding to the arcs originating at the given node, or NULL if no data exist; this array must not be changed from outside
Definition at line 5688 of file misc.c. References SCIP_Digraph::arcdatas, SCIP_Digraph::nsuccessors, NULL, and SCIP_Digraph::successorssize.
Compute undirected connected components on the given graph.
Definition at line 5779 of file misc.c. References BMSallocClearMemoryArray, BMSallocMemoryArray, BMSclearMemoryArray, BMScopyMemoryArray, BMSfreeMemoryArray, BMSreallocMemoryArray, SCIP_Digraph::components, SCIP_Digraph::componentstarts, SCIP_Digraph::componentstartsize, depthFirstSearch(), SCIP_Digraph::ncomponents, SCIP_Digraph::nnodes, SCIP_Digraph::nsuccessors, NULL, SCIP_ALLOC, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPdigraphAddArc(), SCIPdigraphFreeComponents(), and SCIP_Digraph::successors. Referenced by presolComponents(), and sortGenVBounds().
Performes an (almost) topological sort on the undirected components of the given directed graph. The undirected components should be computed before using SCIPdigraphComputeUndirectedComponents().
Definition at line 5891 of file misc.c. References BMSallocClearMemoryArray, BMSallocMemoryArray, BMSfreeMemoryArray, SCIP_Digraph::components, SCIP_Digraph::componentstarts, depthFirstSearch(), SCIP_Digraph::ncomponents, SCIP_Digraph::nnodes, NULL, SCIP_ALLOC, SCIP_Bool, and SCIP_OKAY. Referenced by sortGenVBounds().
returns the number of previously computed undirected components for the given directed graph
Definition at line 5955 of file misc.c. References SCIP_Digraph::componentstartsize, SCIP_Digraph::ncomponents, and NULL. Referenced by sortGenVBounds().
Returns the previously computed undirected component of the given number for the given directed graph. If the components were sorted using SCIPdigraphTopoSortComponents(), the component is (almost) topologically sorted.
Definition at line 5968 of file misc.c. References SCIP_Digraph::components, SCIP_Digraph::componentstarts, and NULL. Referenced by presolComponents(), and sortGenVBounds().
frees the component information for the given directed graph
Definition at line 5988 of file misc.c. References BMSfreeMemoryArray, SCIP_Digraph::components, SCIP_Digraph::componentstarts, SCIP_Digraph::componentstartsize, SCIP_Digraph::ncomponents, and NULL. Referenced by SCIPdigraphComputeUndirectedComponents(), and SCIPdigraphFree().
output of the given directed graph via the given message handler
Definition at line 6015 of file misc.c. References SCIP_Digraph::nnodes, SCIP_Digraph::nsuccessors, SCIPmessageFPrintInfo(), and SCIP_Digraph::successors.
prints the given directed graph structure in GML format into the given file
Definition at line 6050 of file misc.c. References SCIP_Digraph::nnodes, SCIP_Digraph::nsuccessors, NULL, SCIP_MAXSTRLEN, SCIPgmlWriteArc(), SCIPgmlWriteClosing(), SCIPgmlWriteNode(), SCIPgmlWriteOpening(), SCIPsnprintf(), SCIP_Digraph::successors, and TRUE.
output of the given directed graph via the given message handler
Definition at line 6089 of file misc.c. References SCIP_Digraph::components, SCIP_Digraph::componentstarts, SCIP_Digraph::ncomponents, and SCIPmessageFPrintInfo(). |