Learn R Programming

FusedPCA (version 0.2)

isolate: Isolated nodes collection

Description

Get the indices of the isolated nodes in the graph.

Usage

isolate(A)

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.

References

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

Examples

Run this code

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

Run the code above in your browser using DataLab