Main Content

getmatrix (biograph)

(To be removed) Get connection matrix from biograph object

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


[Matrix, ID, Distances] = getmatrix(BGObj)


BGObj Biograph object created by biograph (object constructor).


[Matrix, ID, Distances] = getmatrix(BGObj) converts the biograph object, BiographObj, into a logical sparse matrix, Matrix, in which 1 indicates that a node (row index) is connected to another node (column index). ID is a cell array of character vectors listing the ID properties for each node, and corresponds to the rows and columns of Matrix. Distances is a column vector with one entry for every nonzero entry in Matrix traversed column-wise and representing the respective Weight property for each edge.

Version History

Introduced in R2006b

expand all

Warns starting in R2022a

See Also

| |