Description Usage Arguments Value Author(s) See Also Examples
View source: R/linkcomm_main.R
This function converts a character string edgelist into an integer edgelist.
1 | integer.edgelist(network)
|
network |
An edge list, which is a matrix or data frame with 2 or 3 columns. The first 2 columns contain the nodes that interact with each other, which can be character strings or integer values. The optional third column is a numerical vector of weights for each edge, which is stripped from the output. |
A list containing the following components:
edges |
A matrix with two columns containing the integer edgelist. |
nodes |
A named integer vector mapping node integer IDs to their character string equivalents. |
Alex T. Kalinka alex.t.kalinka@gmail.com
1 2 3 | ## Generate graph and convert into an integer edgelist.
g <- data.frame(letters[1:10],letters[6:15])
gi <- integer.edgelist(g)
|
Loading required package: igraph
Attaching package: ‘igraph’
The following objects are masked from ‘package:stats’:
decompose, spectrum
The following object is masked from ‘package:base’:
union
Loading required package: RColorBrewer
Welcome to linkcomm version 1.0-13
For a step-by-step guide to using linkcomm functions:
> vignette(topic = "linkcomm", package = "linkcomm")
To run an interactive demo:
> demo(topic = "linkcomm", package = "linkcomm")
To cite, see:
> citation("linkcomm")
NOTE: To use linkcomm, you require read and write permissions in the current directory (see: help("getwd"), help("setwd"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.