forked from gtDMMB/RNAStructProfiling
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraph.h
More file actions
43 lines (38 loc) · 882 Bytes
/
graph.h
File metadata and controls
43 lines (38 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef GRAPH_H
#define GRAPH_H
#define SIZE 4
/* Node Struct */
typedef struct node
{
/*int label;*/
char *label;
struct node **neighbors;
int numNeighbors;
int nsize;
int sfreq;
int gfreq;
char *bracket;
char **diff;
int DFS; /* boolean value */
unsigned long sum;
} node;
node* createNode();
void init_graph();
void initialize();
unsigned long binary_rep();
void find_LCAs();
int advance(int new, int oldk);
int not_in_sums(unsigned long num, int k,node **vertices);
char* convert_binary(unsigned long binary);
void found_edge(node *child,node *parent) ;
void calc_gfreq();
void removeEdges();
void removeEdge();
void make_oval_bracket(node *vert);
char* find_child_bracket(node *vert, node *child);
void print_edges();
void printGraph();
void freeGraph();
extern node** graph;
extern int GRAPHSIZE;
#endif