autoNameForFabric: Node naming utility function for BioFabric

Description Usage Arguments Details Value Author(s) Examples

View source: R/bioFabric.R

Description

BioFabric requires nodes have names. This will do it!

Usage

1

Arguments

inGraph

The graph to name, in igraph format (see igraph).

Details

BioFabric requires that all nodes have names. If network is named, there is no change. If nodes are unnamed but have the attribute "label", that attribute is copied into the "name" attribute. Otherwise, names of the form "BFn" are formed, where n is the index of the node.

Value

The provided graph with nodes named

Author(s)

Bill Longabaugh <wlongabaugh@systemsbiology.org>

Examples

1
2
3
4
5
6
7
8
## Not run: 

library(igraph)

bfGraph = graph.tree(20, children=2, mode="out")
bfGraph <- autoNameForFabric(bfGraph)

## End(Not run)

wjrl/RBioFabric documentation built on May 4, 2019, 7:34 a.m.