Description Usage Arguments Value Author(s) See Also Examples
Function to create a graph in graphNEL or igraph format from a source and a target vector.
1 | makeNetwork(source, target, edgemode="undirected", format=c("graphNEL", "igraph"))
|
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. |
A graph object.
Marcus Dittrich
1 2 3 | source <- c("a", "b", "c", "d")
target <- c("b", "c", "a", "a")
graph <- makeNetwork(source, target, edgemode="undirected")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.