Graphpass
0.0.2
A helper library for network filtering, analysis and visualization
|
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 () |
Basic filtering utilities.
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.
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 |
Random filtering is most basic
int filter_graph | ( | ) |
Filters an igraph using one or more methods based on global "METHODS", and outputs graphs as derivatives of filename.
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).