get.stochastic: Stochastic matrix of a graph

View source: R/stochastic_matrix.R

get.stochasticR 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.


igraph/rigraph documentation built on May 19, 2024, 6:19 a.m.