Graphpass
0.0.2
A helper library for network filtering, analysis and visualization
|
Tools for presetting visualization elements: color, position & size. More...
Go to the source code of this file.
Functions | |
int | colors (igraph_t *graph) |
int | layout_graph (igraph_t *graph, char layout) |
int | set_size (igraph_t *graph, igraph_vector_t *v, int max) |
Tools for presetting visualization elements: color, position & size.
int colors | ( | igraph_t * | graph | ) |
creates default colors for a graph based on walktrap modularity
Colors sets the rgb values based on a preset color scheme.
- | the graph for which to provide colors. |
int layout_graph | ( | igraph_t * | graph, |
char | layout | ||
) |
Lays out a graph using a standard algorithm
graph | - the graph to layout |
layout | - a char for the layout 'k' for kamada_kawai, 'f' for fruchterman rheingold or lgl if char is not recognized. |
int set_size | ( | igraph_t * | graph, |
igraph_vector_t * | v, | ||
int | max | ||
) |
sets the size of nodes based on vector scores provide by v
graph | - graph to set size values |
v | - vector used to set size values, an attribute for degree, for instance |
max | - the maximum desired size setting. |