makeNetwork {BioNet} | R Documentation

## Create graph from source and target vectors

### Description

Function to create a graph in graphNEL or igraph format from a source and a target vector.

### Usage

    makeNetwork(source, target, edgemode="undirected", format=c("graphNEL", "igraph"))

### Arguments

`source` | Vector of source nodes.
`target` | Vector of corresponding target nodes.
`edgemode` | For an "undirected" or "directed" network.
`format` | Graph format, eiter graphNEL or igraph.

### Value

A graph object.

### Author(s)

Marcus Dittrich

### See Also

`loadNetwork.sif`, `saveNetwork`

### Examples

    source <- c("a", "b", "c", "d")
    target <- c("b", "c", "a", "a")
    graph <- makeNetwork(source, target, edgemode="undirected")

[Package BioNet version 1.40.0 Index]