get.stochastic {igraph}R Documentation

Stochastic matrix of a graph

Description

[Deprecated]

get.stochastic() was renamed to stochastic_matrix() to create a more consistent API.

Usage

get.stochastic(
  graph,
  column.wise = FALSE,
  sparse = igraph_opt("sparsematrices")
)

Arguments

graph

The input graph. Must be of class igraph.

column.wise

If FALSE, then the rows of the stochastic matrix sum up to one; otherwise it is the columns.

sparse

Logical scalar, whether to return a sparse matrix. The Matrix package is needed for sparse matrices.


[Package igraph version 2.0.3 Index]