extract_edges {pastboon} | R Documentation |
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)
Arguments
net |
A network structure of the class |
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.
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.
Examples
# Load the example network
data(lac_operon_net)
# Extract edges from the network
edges <- extract_edges(lac_operon_net)
[Package pastboon version 0.1.0 Index]