igraph
Helper Functionsigraph
Helper Functions
migraph.add(g, names1, names2, force = TRUE)migraph.color(g, names1, names2, col)
migraph.clean(g)
An igraph
object.
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.
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.
A character string. The color applied to all
vertices (or edges) specified by the names1
(or
names2
) argument.
An igraph
object.