popgraph-operator-minus: Overload '-' operator for pairs of 'popgraph' objects

Description Usage Arguments Value Author(s) Examples

Description

An overload of the - operator for popgraph objects that removes the edges in the first one that are in the second one.

Usage

1
2
## S3 method for class 'popgraph'
e1 - e2

Arguments

e1

A popgraph object reprenting the offspring.

e2

A popgraph object representing the parent.

Value

A new popgraph object that represents the genotypes left over after removing the parental part (if possible).

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(igraph)
e1 <- as.popgraph( graph.atlas(716) )
e2 <- as.popgraph( graph.atlas(806) )
e3 <- e1 - e2
par(mfrow=c(1,3))
l <- layout.fruchterman.reingold( e1 )
plot(e1, layout=l)
plot(e2, layout=l)
plot(e3, layout=l)
par(mfrow=c(1,1))

popgraph documentation built on April 14, 2017, 9:58 p.m.