isolate: Isolated nodes collection

Description Usage Arguments Value Author(s) References Examples

View source: R/isolate.R

Description

Get the indices of the isolated nodes in the graph.

Usage

1

Arguments

A

input matrix – adjacency matrix of an observed graph, of dimension n-nodes x n-nodes.

Value

isolate

the indices of the isolated nodes in the graph with adjacency matrix A.

nonisolate

the indices of the non-isolated nodes in the graph with adjacency matrix A.

Author(s)

Yang Feng, Richard J. Samworth and Yi Yu

References

Yang Feng, Richard J. Samworth and Yi Yu, Community Detection via Fused Principal Component Analysis, manuscript.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
A = matrix(c(0,1,1,1,0,0,1,0,0), byrow = TRUE, ncol = 3)


A


iso.A = isolate(A)


iso.A$isolate


iso.A$nonisolate

FusedPCA documentation built on May 29, 2017, 9:19 p.m.

Related to isolate in FusedPCA...