delete.isolated: Delete Isolated Nodes

Description Usage Arguments Examples

View source: R/tools.R

Description

This function allows you to delete isolated genes (nodes) in a graph.

Usage

1
2
3
4
5
delete.isolated(
  g,
  to = c("igraph", "adjacency", "edges", "graph", "bnlearn"),
  from = c("auto", "adjacency", "edges", "graph", "igraph", "bnlearn")
)

Arguments

g

Graph object.

to

Output format (optional): 'adjacency', 'edges', 'graph', 'igraph', or 'bnlearn'. Default: 'igraph'

from

Input format (optional): 'auto', 'adjacency', 'edges', 'graph', 'igraph', or 'bnlearn'. Default: 'auto'

Examples

1
g <- delete.isolated(g, to='igraph')

rlebron-bioinfo/gnlearn documentation built on July 25, 2020, 12:38 p.m.