connect_undirected_graph: Function to connect a non connected graph

Description Usage Arguments Value Examples

Description

Function to connect a non connected graph

Usage

1

Arguments

g

an igraph object

Value

a connected igraph object

Examples

1
2
3
4
library(igraph)
g <- diffuStats:::.connect_undirected_graph(
    graph.empty(10, directed = FALSE))
g

b2slab/diffuStats documentation built on Feb. 26, 2021, 2 p.m.