|
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Directed Graph 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().
resize directed graph structure
Definition at line 5355 of file misc.c. References SCIP_Digraph::arcdata, BMSreallocMemoryArray, SCIP_Digraph::nnodes, SCIP_Digraph::nodedata, SCIP_Digraph::nsuccessors, NULL, SCIP_ALLOC, SCIP_OKAY, SCIP_Digraph::successors, and SCIP_Digraph::successorssize.
copies directed graph structure
Definition at line 5391 of file misc.c. References SCIP_Digraph::arcdata, BMSallocClearMemoryArray, BMSallocMemory, BMSduplicateMemoryArray, SCIP_Digraph::components, SCIP_Digraph::componentstarts, SCIP_Digraph::ncomponents, SCIP_Digraph::nnodes, SCIP_Digraph::nodedata, 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 5450 of file misc.c. References SCIP_Digraph::arcdata, 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 5472 of file misc.c. References BMSfreeMemory, BMSfreeMemoryArray, BMSfreeMemoryArrayNull, NULL, and SCIPdigraphFreeComponents(). Referenced by presolComponents().
add (directed) arc and a related data to the directed graph structure
Definition at line 5544 of file misc.c. References SCIP_Digraph::arcdata, ensureSuccessorsSize(), SCIP_Digraph::nsuccessors, NULL, SCIP_CALL, SCIP_OKAY, and SCIP_Digraph::successors. Referenced by fillDigraph(), and SCIPdigraphComputeUndirectedComponents().
add (directed) arc to the directed graph structure, if it is not contained, yet
Definition at line 5572 of file misc.c. References SCIP_Digraph::arcdata, 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 5606 of file misc.c. References SCIP_Digraph::nnodes, and NULL.
returns the node data, or NULL if no data exist
Definition at line 5616 of file misc.c. References SCIP_Digraph::nodedata, and NULL.
sets the node data sets the node data
Definition at line 5632 of file misc.c. References SCIP_Digraph::nodedata, and NULL.
returns the total number of arcs in the given digraph
Definition at line 5646 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 5664 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 5679 of file misc.c. References SCIP_Digraph::nsuccessors, NULL, SCIP_Digraph::successors, and SCIP_Digraph::successorssize.
returns the array of data 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 5697 of file misc.c. References SCIP_Digraph::arcdata, SCIP_Digraph::nsuccessors, NULL, and SCIP_Digraph::successorssize.
Compute undirected connected components on the given graph.
Definition at line 5788 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().
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 5900 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.
returns the number of previously computed undirected components for the given directed graph
Definition at line 5964 of file misc.c. References SCIP_Digraph::componentstartsize, SCIP_Digraph::ncomponents, and NULL.
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 5977 of file misc.c. References SCIP_Digraph::components, SCIP_Digraph::componentstarts, and NULL. Referenced by presolComponents().
frees the component information for the given directed graph
Definition at line 5997 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 6024 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 6059 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 6098 of file misc.c. References SCIP_Digraph::components, SCIP_Digraph::componentstarts, SCIP_Digraph::ncomponents, and SCIPmessageFPrintInfo(). |