Graphpass  0.0.2
A helper library for network filtering, analysis and visualization
Macros | Enumerations | Variables
graphpass.h File Reference

The base library for nutil. More...

#include "gexf.h"
#include "rnd.h"
#include "reports.h"
#include "io.h"
#include "viz.h"
#include "analyze.h"
#include "quickrun.h"
#include "filter.h"

Go to the source code of this file.

Macros

#define _GNU_SOURCE   1
 
#define PROGRAM_NAME   "Graph Pass"
 
#define BUG_REPORT   "ryan.deschamps@gmail.com"
 
#define GIT_REPOSITORY   "https://www.github.com/archivesunleashed/graphpass"
 
#define COLOUR_SET_PASTEL   "pastel.h"
 
#define COLOUR_SET_PRIMARY   "primary.h"
 
#define COLOUR_SET_DAMPENED   "dampened.h"
 
#define VIZ_SET_SPACIOUS   "viz_spacious.h"
 
#define VIZ_SET_LARGE   "viz_large.h"
 
#define VIZ_SET_SMALL   "vis_small.h"
 
#define MAX_METHODS   9
 
#define ALL_METHODS   'abcdehioprw'
 
#define SIZE_DEFAULT   "Degree"
 
#define SIZE_DEFAULT_CHAR   'd'
 
#define COLOR_BASE   "WalkTrapModularity"
 
#define PAGERANK_DAMPING   0.85
 
#define LAYOUT_DEFAULT_CHAR   = 'f'
 
#define NELEMS(x)   (sizeof(x) / sizeof((x)[0]))
 
#define FILENAME(x)   x ? x : "cpp.graphml"
 
#define DIRECTORY(x)   x ? x : "assets/"
 
#define OUTPUT(x)   x ? x : "OUT/"
 
#define METHODS   (x) x ? x : "b"
 
#define PERCENT   (x) x ? x : 0.0
 

Enumerations

enum  bool { false, true, false, true }
 

Variables

igraph_t g
 
igraph_attribute_table_t att
 
char * FILENAME
 
char * DIRECTORY
 
char * FILEPATH
 
char * METHODS
 
char * OUTPUT
 
char * OUTPATH
 
igraph_integer_t NODESIZE
 
float PERCENT
 
bool REPORT = false
 
bool GFORMAT = false
 
bool QUICKRUN = false
 
bool SAVE = true
 
bool CALC_WEIGHTS = false
 
igraph_vector_t WEIGHTED
 

Detailed Description

The base library for nutil.

Macro Definition Documentation

◆ PAGERANK_DAMPING

#define PAGERANK_DAMPING   0.85

chance random walk will not restart

Variable Documentation

◆ DIRECTORY

char* DIRECTORY

Directory to access FILENAME and put REPORT

◆ FILENAME

char* FILENAME

The filename from -f flag.

◆ FILEPATH

char* FILEPATH

The filepath (DIRECTORY + FILENAME)

◆ GFORMAT

bool GFORMAT = false

Graph format - true is "GEXF" false is "GRAPHML"

◆ METHODS

char* METHODS

METHODS to filter

◆ NODESIZE

igraph_integer_t NODESIZE

Number of Nodes in original graph

◆ OUTPATH

char* OUTPATH

Path to output folder (DIRECTORY + OUTPUT)

◆ OUTPUT

char* OUTPUT

Folder to output new graphs

◆ PERCENT

float PERCENT

Filtering percentage 0.0 by default

◆ QUICKRUN

bool QUICKRUN = false

Lightweight visualization run

◆ REPORT

bool REPORT = false

Include a report?

◆ SAVE

bool SAVE = true

If false, does not save graphs at all (for reports)

◆ WEIGHTED

igraph_vector_t WEIGHTED

If greater than 0, conducts weighted analysis