import.graph: Import A Local Graph

Description Usage Arguments Examples

View source: R/datasets.R

Description

This function allows you to import a local graph.

Usage

1
2
3
4
5
6
7
8
import.graph(
  path,
  sep = "\t",
  header = TRUE,
  index = TRUE,
  from = c("adjacency", "edges"),
  to = c("igraph", "adjacency", "edges", "graph", "bnlearn")
)

Arguments

path

Path to local graph.

sep

Separator / delimiter character (optional). Default: TAB

header

Whether or not the file has a header (optional). Default: TRUE

index

Whether or not the file has an index column (optional). Default: TRUE

from

Input format (optional): 'adjacency' or 'edges'. Default: 'adjacency'

to

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

Examples

1
g <- import.graph('mygraph.tsv')

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