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

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)
 

Detailed Description

Tools for presetting visualization elements: color, position & size.

Function Documentation

◆ colors()

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.

Parameters
-the graph for which to provide colors.

◆ layout_graph()

int layout_graph ( igraph_t *  graph,
char  layout 
)

Lays out a graph using a standard algorithm

Parameters
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.

◆ set_size()

int set_size ( igraph_t *  graph,
igraph_vector_t *  v,
int  max 
)

sets the size of nodes based on vector scores provide by v

Parameters
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.