View source: R/net_functions.R
read_net | R Documentation |
Read the network information from a text file with specific format.
read_net(file)
file |
The name of text file |
This function reads the network information from a text file with specific format: each line contains two strings separated by spaces, which correspond to the names of two end points of one edge in the network.
A list with the following components:
size |
The number of network nodes |
node |
The vector of network node names |
matrix |
The logical adjacency matrix |
write_net
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.