Learn R Programming

pastboon (version 0.1.4)

extract_edges: Extract edges from a Boolean network

Description

Extracts the list of directed edges (links) from a given Boolean network.

Usage

extract_edges(net, node_names = TRUE)

Value

A data frame where each row corresponds to a directed edge of the network and the two columns indicate the source and destination of each edge.

Arguments

net

A network structure of the class BooleanNetwork from the BoolNet package.

node_names

If TRUE (default), the edges are returned by node names; otherwise, the edges are returned by node indices.

Details

Since Boolean networks have a directed graph topology, this function extracts the list of directed edges from a given Boolean network.

Examples

Run this code

# Load the example network
data(lac_operon_net)

# Extract edges from the network
edges <- extract_edges(lac_operon_net)

Run the code above in your browser using DataLab