get_non_edges: Disconnected node pairs in a network

Description Usage Arguments Value Author(s) Examples

View source: R/link_predictors.R

Description

Given a network of interest with N nodes and L links, produces a matrix with N(N-1)/2 - L rows and 2 columns containing the list of disconnected node pairs in the network.

Usage

1

Arguments

g

igraph; The network of interest.

Value

A matrix with the disconnected node pairs in the network.

Author(s)

Gregorio Alanis-Lobato galanisl@uni-mainz.de

Examples

1
2
3
# Determine which node pairs are disconnected in the Zacharay Karate Club 
# network
non_edges <- get_non_edges(g = karate_club)

galanisl/LinkPrediction documentation built on May 17, 2019, 12:10 p.m.