Learn R Programming

CePa (version 0.8.1)

generate.pathway: Generate igraph object from edge list

Description

Generate igraph object from edge list

Usage

generate.pathway(el)

Arguments

el

edge list, matrix with two columns. The first column is the input node and the second column is the output node.

Author

Zuguang Gu <z.gu@dkfz.de>

Details

The function is a wrapper of graph.edgelist and it generates a directed graph.

In the function, repeated edged for two nodes will be eliminated.

See Also

Examples

Run this code
edgelist = rbind(c("a", "b"), c("a", "b"), c("a", "c"))
g = generate.pathway(edgelist)

Run the code above in your browser using DataLab