update_vertices: Vertex/Edge Propagation in igraph Foundation for any graph...

Description Usage Arguments Value Functions

View source: R/propagation.R

Description

update_vertices performs propagation on vertices. updateEdges performs propagation on edges.

Usage

1
2
3
update_vertices(g, get_determiners, callback, verbose = FALSE)

update_edges(g, get_determiners, callback, verbose = FALSE)

Arguments

g

A graph object.

get_determiners

A function returns the vertice/edge indices that must be updated for the callback to be executed. Arguments: g - the graph object, i - the index of a vertex/edge in g. Returns: an array of indices for the vertices/edges that are needed to perform the callback on vertex/edge i.

callback

The function performed on each vertex/edge. Arguments: g - the graph object, i - the index of a graph/edge in g. Returns: a graph object.

verbose

if TRUE prints out details of propagation

Value

A igraph object with updated vertex/edge states. A warning message is returned if not all vertices could be updated.

Functions


robertness/lucy documentation built on May 27, 2019, 10:32 a.m.