Main Content

getweightmatrix (biograph)

(To be removed) Get connection matrix with weights from biograph object

getweightmatrix (biograph) will be removed in a future release. Use adjacency instead.

Syntax

[Matrix, ID] = getweightmatrix(BGObj)

Arguments

BGObj Biograph object created by biograph (object constructor).

Description

[Matrix, ID] = getweightmatrix(BGObj) converts the biograph object into a double sparse matrix, where non-zeros indicate the weight from the source node (row index) to the destination node (column index). ID is a list of the node's 'ID' property and corresponds to the rows and columns of Matrix.

Version History

Introduced in R2006b

expand all

Warns starting in R2022a

See Also

| |