Graphpass  0.0.2
A helper library for network filtering, analysis and visualization
reports.h
Go to the documentation of this file.
1 /* -*- Graphpass -- Network Graph Utilities mode: C -*- */
2 /*
3  Copyright [2018] [Ryan Deschamps]
4 
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8 
9  http://www.apache.org/licenses/LICENSE-2.0
10 
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License. */
16 
17 #ifndef REPORTS_H
18 #define REPORTS_H
19 
20 struct Node {
21  char* abbrev;
22  igraph_real_t val;
23  struct Node *next;
24 };
25 
29 struct RankNode {
30  int rankids[20];
31  struct RankNode *next;
32 };
33 
34 struct Node* asshead = NULL;
35 struct Node* edges = NULL;
36 struct Node* density = NULL;
37 struct Node* betcent = NULL;
38 struct Node* reciprocity = NULL;
39 struct Node* degcent = NULL;
40 struct Node* idegcent = NULL;
41 struct Node* odegcent = NULL;
42 struct Node* eigcent = NULL;
43 struct Node* pagecent = NULL;
44 struct Node* diameter = NULL;
45 struct Node* pathlength = NULL;
46 struct Node* clustering = NULL;
47 struct RankNode* ranks = NULL;
48 
49 
51 int push(struct Node** head_ref, igraph_real_t value, char* attr);
52 
54 int pushRank (struct RankNode** head_ref, int rankids[20]);
55 
57 int write_report(igraph_t *graph);
58 
59 #endif
int push(struct Node **head_ref, igraph_real_t value, char *attr)
Definition: reports.c:59
unimplemented struct for holding the top 20 rankids for the graph.
Definition: reports.h:29
int write_report(igraph_t *graph)
Definition: reports.c:80
int pushRank(struct RankNode **head_ref, int rankids[20])
Definition: reports.c:69
Holds graph level values for each graph that has been filtered.
Definition: reports.h:20