as.adjacencyList: Uses a adjacency matrix to create a adjacency list

Description Usage Arguments Value Author(s) Examples

View source: R/networkBasedSVM.R

Description

Uses a adjacency matrix to create a adjacency list as needed for fit.networkBasedSVM.

Usage

1
2
  as.adjacencyList(adjacency.matrix,
    skip.redundant.nodes = TRUE, is.directed = FALSE)

Arguments

adjacency.matrix

a adjacency matrix.

skip.redundant.nodes

if TRUE and the graph is undirected only the upper triangular matrix (including the diagonal) is used to create the adjacency list.

is.directed

determines wether or not the graph is directed.

Value

an adjacency list.

Author(s)

Marc Johannes JohannesMarc@gmail.com

Examples

1
2
3
4
5
6
## Not run: 
library(pathClass)
data(adjacency.matrix)
ad.list <- as.adjacencyList(adjacency.matrix)

## End(Not run)

pathClass documentation built on May 29, 2017, 11:44 p.m.