Learn R Programming

SITH (version 1.1.0)

progressionChain: Create a linear chain graph to describe the order of mutations

Description

A helper function for simulateTumor() which returns to the user the edge list for a linear chain.

Usage

progressionChain(n)

Arguments

n

Number of vertices in the chain

Value

A matrix with 4 columns and n-1 rows which will be accepted as input to simulateTumor().

Examples

Run this code
# NOT RUN {
G <- progressionChain(3)
# }

Run the code above in your browser using DataLab