NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions
graph.h File Reference
#include <corelib/ncbistl.hpp>
+ Include dependency graph for graph.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  meNode
 
struct  meEdge
 
struct  meTree
 
struct  meSet
 

Macros

#define MAX_LABEL_LENGTH   50
 
#define NODE_LABEL_LENGTH   50
 
#define EDGE_LABEL_LENGTH   50
 
#define true_fastme   1
 
#define TRUE_FASTME   1
 
#define false_fastme   0
 
#define FALSE_FASTME   0
 
#define EXIT_FAILURE   (-1)
 
#define ReadOpenParenthesis   0
 
#define ReadSubTree   1
 
#define ReadLabel   2
 
#define ReadWeight   3
 
#define ReadSize   4
 
#define ReadEntries   5
 
#define Done   6
 
#define MAXSIZE   70000
 

Typedefs

typedef struct meNode meNode
 
typedef struct meEdge meEdge
 
typedef struct meTree meTree
 
typedef struct meSet meSet
 

Functions

meNodemakeNewNode (const char *label, int i)
 
meNodemakeNode (const char *label, meEdge *parentEdge, int index)
 
meEdgemakeEdge (const char *label, meNode *tail, meNode *head, double weight)
 
meSetaddToSet (meNode *v, meSet *X)
 
meTreenewTree ()
 

Macro Definition Documentation

◆ Done

#define Done   6

Definition at line 70 of file graph.h.

◆ EDGE_LABEL_LENGTH

#define EDGE_LABEL_LENGTH   50

Definition at line 44 of file graph.h.

◆ EXIT_FAILURE

#define EXIT_FAILURE   (-1)

Definition at line 61 of file graph.h.

◆ false_fastme

#define false_fastme   0

Definition at line 55 of file graph.h.

◆ FALSE_FASTME

#define FALSE_FASTME   0

Definition at line 58 of file graph.h.

◆ MAX_LABEL_LENGTH

#define MAX_LABEL_LENGTH   50

Definition at line 42 of file graph.h.

◆ MAXSIZE

#define MAXSIZE   70000

Definition at line 72 of file graph.h.

◆ NODE_LABEL_LENGTH

#define NODE_LABEL_LENGTH   50

Definition at line 43 of file graph.h.

◆ ReadEntries

#define ReadEntries   5

Definition at line 69 of file graph.h.

◆ ReadLabel

#define ReadLabel   2

Definition at line 66 of file graph.h.

◆ ReadOpenParenthesis

#define ReadOpenParenthesis   0

Definition at line 64 of file graph.h.

◆ ReadSize

#define ReadSize   4

Definition at line 68 of file graph.h.

◆ ReadSubTree

#define ReadSubTree   1

Definition at line 65 of file graph.h.

◆ ReadWeight

#define ReadWeight   3

Definition at line 67 of file graph.h.

◆ true_fastme

#define true_fastme   1

Definition at line 47 of file graph.h.

◆ TRUE_FASTME

#define TRUE_FASTME   1

Definition at line 51 of file graph.h.

Typedef Documentation

◆ meEdge

typedef struct meEdge meEdge

◆ meNode

typedef struct meNode meNode

◆ meSet

typedef struct meSet meSet

◆ meTree

typedef struct meTree meTree

Function Documentation

◆ addToSet()

meSet* addToSet ( meNode v,
meSet X 
)

Definition at line 60 of file graph.cpp.

References addToSet(), meSet::firstNode, malloc(), NULL, and meSet::secondNode.

Referenced by addToSet(), loadMatrix(), and loadMatrixOLD().

◆ makeEdge()

meEdge* makeEdge ( const char *  label,
meNode tail,
meNode head,
double  weight 
)

◆ makeNewNode()

meNode* makeNewNode ( const char *  label,
int  i 
)

Definition at line 164 of file graph.cpp.

References i, label, makeNode(), and NULL.

Referenced by BMEsplitEdge(), GMEsplitEdge(), loadMatrix(), and loadMatrixOLD().

◆ makeNode()

meNode* makeNode ( const char *  label,
meEdge parentEdge,
int  index 
)

◆ newTree()

meTree* newTree ( )
Modified on Fri Sep 20 14:57:03 2024 by modify_doxy.py rev. 669887