migraph: 'igraph' Helper Functions

Description Usage Arguments Value

Description

igraph Helper Functions

Usage

1
2
3
4
5
migraph.add(g, names1, names2, force = TRUE)

migraph.color(g, names1, names2, col)

migraph.clean(g)

Arguments

g

An igraph object.

names1, names2

A character vector. The names1 argument defines a first set of vertices. The names2 argument defines a second set of vertices to which the first set connects (i.e., element-wise), thereby defining a set of edges.

force

A boolean. If true, the function adds any missing vertices before adding edges. If false, the function only adds edges that have both vertices already present.

col

A character string. The color applied to all vertices (or edges) specified by the names1 (or names2) argument.

Value

An igraph object.


propr documentation built on Dec. 16, 2019, 9:30 a.m.