Learn R Programming

BoolNet (version 1.44)

toPajek: Export a network to the Pajek file format

Description

Exports a network to the Pajek file format to visualize transition trajectories. For more information on Pajek, please refer to http://pajek.imfm.si/doku.php

Usage

toPajek(attractorInfo, file = "boolean.net", includeLabels=FALSE)

Arguments

attractorInfo
An object of class AttractorInfo, as returned by getAttractors. As the transition table information in this structure is required, getAttractors must be called in synchronous
file
The name of the output file for Pajek. Defaults to "boolean.net".
includeLabels
If set to true, the vertices of the graph in the output file are labeled with the binary encodings of the states. Defaults to FALSE.

Value

  • This function has no return value.

See Also

loadNetwork

Examples

Run this code
library(BoolNet)

# load example data
data(cellcycle)

# get attractors
attractors <- getAttractors(cellcycle)

# export to Pajek
toPajek(attractors, file="pajek_export.net")

Run the code above in your browser using DataLab