Graphpass  0.0.2
A helper library for network filtering, analysis and visualization
Macros | Functions
filter.h File Reference

Basic filtering utilities. More...

Go to the source code of this file.

Functions

float fix_percentile ()
 
int create_filtered_graph (igraph_t *graph, double cutoff, int cutsize, char *attr)
 
int shrink (igraph_t *graph, int cutsize, char *attr)
 
int runFilters (igraph_t *graph, int cutsize)
 
int filter_graph ()
 

Detailed Description

Basic filtering utilities.

Function Documentation

◆ create_filtered_graph()

int create_filtered_graph ( igraph_t *  graph,
double  cutoff,
int  cutsize,
char *  attr 
)

Create a graph from an original graph with a number of nodes equal to cutsize.

Parameters
graph- the graph to filter
cutoff- the value to use as a cutoff value.
cutsize- the size of the requested graph.
attr- the method used to shorten the graph
Returns
0 unless an error occurs.

Random filtering is most basic

◆ filter_graph()

int filter_graph ( )

Filters an igraph using one or more methods based on global "METHODS", and outputs graphs as derivatives of filename.

Returns
0 unless an error is discovered

◆ fix_percentile()

float fix_percentile ( )

Automatically converts percentage to decimal values to fit filter model.

If the –percent or -p flag is greater than 1 and less than 99, fix_percentile will divide by 100, otherwise it will return 0.99 (99 percent).

Returns
0.99 >= A float value >= 0.01