gs.sims.latent_pos: Sample Graph from Latent Position

Description Usage Arguments Value Author(s) Examples

Description

A function to simulate a binary graph given latent positions.

Usage

1

Arguments

X

the latent positions, as a n by k matrix for n vertices and k blocks.

Y

the second half of the latent positions for directed graphs, as a n by k matrix for n vertices and k blocks. Defaults to NULL, which assumes that the sampled graph is symmetric.

Value

An graph object with n vertices, with latent positions given by X if G is symmetric and X, Y if nonsymmetric.

Author(s)

Eric Bridgeford

Examples

1
2
library(graphstats)
data <- gs.sims.latent_pos(array(rnorm(100), dim=c(50, 2)))  # simulate 100 graphs with 10 vertices from the default model

neurodata/graphstats documentation built on May 14, 2019, 5:19 p.m.