All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Detailed Descriptiongraph data part of algorithm for maximum cliques Definition in file tclique_graph.c. #include <stdio.h> #include <string.h> #include <assert.h> #include "tclique/tclique.h" #include "tclique/tclique_def.h" #include "blockmemshell/memory.h" Go to the source code of this file.
Typedef Documentation
Function Documentation
returns, whether the edge (node1, node2) is in the graph Definition at line 81 of file tclique_graph.c. References FALSE, NULL, tcliqueGetFirstAdjedge(), tcliqueGetLastAdjedge(), and TRUE.
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 tcliqueLoadFile().
frees graph data structure
Definition at line 201 of file tclique_graph.c. References BMSfreeMemory, BMSfreeMemoryArray, BMSfreeMemoryArrayNull, and NULL.
ensures, that arrays concerning edges in graph data structure can store at least num entries
Definition at line 228 of file tclique_graph.c. References ALLOC_FALSE, BMSreallocMemoryArray, NULL, and TRUE. Referenced by tcliqueEnsureSizeNodes(), and tcliqueFlush().
ensures, that arrays concerning cached edges in graph data structure can store at least num entries
Definition at line 254 of file tclique_graph.c. References ALLOC_FALSE, BMSreallocMemoryArray, NULL, and TRUE. Referenced by tcliqueAddEdge().
ensures, that arrays concerning nodes in graph data structure can store at least num entries
Definition at line 281 of file tclique_graph.c. References ALLOC_FALSE, BMSreallocMemoryArray, FALSE, NULL, tcliqueEnsureSizeEdges(), and TRUE. Referenced by tcliqueAddNode().
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.
changes weight of node in graph data structure
Definition at line 352 of file tclique_graph.c.
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 369 of file tclique_graph.c. References ALLOC_FALSE, BMSallocMemoryArray, BMSclearMemoryArray, FALSE, NULL, tcliqueEnsureSizeCachedEdges(), and TRUE.
inserts all cached edges into the data structures
Definition at line 406 of file tclique_graph.c. References BMSfreeMemoryArray, FALSE, NULL, tcliqueEnsureSizeEdges(), and TRUE.
loads graph data structure from file
Definition at line 541 of file tclique_graph.c. References BMSallocMemoryArray, BMScopyMemoryArray, BMSfreeMemoryArray, FALSE, infoMessage, NULL, tcliqueCreate(), and TRUE.
saves graph data structure to file
Definition at line 719 of file tclique_graph.c. References FALSE, infoMessage, NULL, and TRUE.
gets number of edges in the graph
Definition at line 763 of file tclique_graph.c. References NULL. Referenced by tcliqueGetFirstAdjedge(), tcliqueGetLastAdjedge(), and tcliquePrintGraph().
gets degree of nodes in graph
Definition at line 773 of file tclique_graph.c. References NULL. Referenced by tcliqueGetLastAdjedge(), and tcliquePrintGraph().
gets adjacent nodes of edges in graph
Definition at line 784 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 795 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 819 of file tclique_graph.c. References NULL, tcliqueGetAdjnodes(), tcliqueGetDegrees(), and tcliqueGetNEdges(). Referenced by TCLIQUE_ISEDGE(), TCLIQUE_SELECTADJNODES(), and tcliquePrintGraph().
Definition at line 851 of file tclique_graph.c. References infoMessage, NULL, tcliqueGetDegrees(), tcliqueGetFirstAdjedge(), tcliqueGetLastAdjedge(), and tcliqueGetNEdges(). |