tclique.h File Reference Detailed Descriptiontclique user interface Definition in file tclique.h. Go to the source code of this file.
Macro Definition Documentation
type used for boolean values Definition at line 42 of file tclique.h. Referenced by branch(), compSubcliques(), newSolution(), tcliqueColoring(), and tcliqueMaxClique().
Value:
TCLIQUE_WEIGHT cliqueweight, TCLIQUE_WEIGHT* minweight, TCLIQUE_Bool* acceptsol, TCLIQUE_Bool* stopsolving) Definition: cons_sos1.c:205 user callback method which is called whenever a feasible clique was found input:
user callback method to get number of nodes in the graph input:
user callback method to get weights of nodes in the graph input:
user callback method to return whether the edge (node1, node2) is in the graph input:
user callback method to select all nodes from a given set of nodes which are adjacent to a given node input:
Typedef Documentation
Enumeration Type Documentation
Function Documentation
returns, whether the edge (node1, node2) is in the graph Definition at line 82 of file tclique_graph.c. References FALSE, NULL, tcliqueGetFirstAdjedge(), tcliqueGetLastAdjedge(), and TRUE.
selects all nodes from a given set of nodes which are adjacent to a given node and returns the number of selected nodes Definition at line 125 of file tclique_graph.c. References NULL, tcliqueGetFirstAdjedge(), and tcliqueGetLastAdjedge().
creates graph data structure
Definition at line 175 of file tclique_graph.c. References ALLOC_FALSE, BMSallocMemory, NULL, and TRUE. Referenced by createTcliqueGraph(), initTCliquegraph(), and tcliqueLoadFile().
frees graph data structure
Definition at line 201 of file tclique_graph.c. References BMSfreeMemory, BMSfreeMemoryArray, BMSfreeMemoryArrayNull, and NULL. Referenced by searchEcAggr().
adds nodes up to the given node number to graph data structure (intermediate nodes have weight 0)
Definition at line 330 of file tclique_graph.c. References FALSE, MAX, tcliqueEnsureSizeNodes(), and TRUE. Referenced by createTcliqueGraph(), and initTCliquegraph().
changes weight of node in graph data structure
Definition at line 352 of file tclique_graph.c. Referenced by searchEcAggrWithCliques(), and updateWeightsTCliquegraph().
adds edge (node1, node2) to graph data structure (node1 and node2 have to be contained in graph data structure) New edges are cached, s.t. the graph data structures are not correct until a call to tcliqueFlush(); you have to make sure, that no double edges are inserted.
Definition at line 370 of file tclique_graph.c. References ALLOC_FALSE, BMSallocMemoryArray, BMSclearMemoryArray, FALSE, NULL, tcliqueEnsureSizeCachedEdges(), and TRUE. Referenced by createTcliqueGraph(), and initTCliquegraph().
inserts all cached edges into the data structures
Definition at line 407 of file tclique_graph.c. References BMSfreeMemoryArray, FALSE, NULL, tcliqueEnsureSizeEdges(), and TRUE. Referenced by createTcliqueGraph(), and initTCliquegraph().
loads graph data structure from file
Definition at line 542 of file tclique_graph.c. References BMSallocMemoryArray, BMScopyMemoryArray, BMSfreeMemoryArray, FALSE, infoMessage, NULL, tcliqueCreate(), and TRUE.
saves graph data structure to file
Definition at line 720 of file tclique_graph.c. References FALSE, infoMessage, NULL, and TRUE.
gets number of edges in the graph
Definition at line 764 of file tclique_graph.c. References NULL. Referenced by tcliqueGetFirstAdjedge(), tcliqueGetLastAdjedge(), and tcliquePrintGraph().
gets degree of nodes in graph
Definition at line 774 of file tclique_graph.c. References NULL. Referenced by tcliqueGetLastAdjedge(), and tcliquePrintGraph().
gets adjacent nodes of edges in graph
Definition at line 785 of file tclique_graph.c. References NULL. Referenced by tcliqueGetFirstAdjedge(), and tcliqueGetLastAdjedge().
gets pointer to first adjacent edge of given node in graph
Definition at line 796 of file tclique_graph.c. References NULL, tcliqueGetAdjnodes(), and tcliqueGetNEdges(). Referenced by TCLIQUE_ISEDGE(), TCLIQUE_SELECTADJNODES(), and tcliquePrintGraph().
gets pointer to last adjacent edge of given node in graph
Definition at line 820 of file tclique_graph.c. References NULL, tcliqueGetAdjnodes(), tcliqueGetDegrees(), and tcliqueGetNEdges(). Referenced by TCLIQUE_ISEDGE(), TCLIQUE_SELECTADJNODES(), and tcliquePrintGraph().
prints graph data structure
Definition at line 852 of file tclique_graph.c. References infoMessage, NULL, tcliqueGetDegrees(), tcliqueGetFirstAdjedge(), tcliqueGetLastAdjedge(), and tcliqueGetNEdges().
finds maximum weight clique
Definition at line 1000 of file tclique_branch.c. References ALLOC_ABORT, BMSallocMemoryArray, BMScreateChunkMemory, BMSdestroyChunkMemory, BMSfreeMemoryArray, branch(), CHUNK_SIZE, CLIQUEHASH_INITSIZE, createCliquehash(), debugMessage, freeCliquehash(), NULL, TCLIQUE_Bool, TCLIQUE_OPTIMAL, and TCLIQUE_USERABORT. Referenced by computeMinDistance(), findCumulativeConss(), searchEcAggrWithCliques(), sepaBoundInequalitiesFromGraph(), and separateCuts(). |