read_network: Pajek file reader: obtains the main path saved from Pajek

Description Usage Arguments Details Value

Description

The main path file will be exported from Pajek. This function reads it back into R as an igraph network built by subsetting the full network.

Usage

1
read_network(filename, net)

Arguments

filename

The Pajek exported file with the main path network.

net

The igraph full network.

Details

Code is adapted from function *read_net*, from Jonathan H. Morgan (2019) http://mrvar.fdv.uni-lj.si/pajek/R/RMorgan.htm

Value

An igraph network with only the main path nodes.


KleberNeves/milestones documentation built on Dec. 18, 2021, 3:36 a.m.