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


tpq/miSciTools documentation built on Sept. 16, 2019, 4:43 p.m.