Main Content

nodeIDs

Get all node IDs in factor graph

Description

ids = nodeIDs(graph) returns all node IDs, ids, currently in the factor graph, graph.

Input Arguments

collapse all

Factor graph, specified as a factorGraph object.

Output Arguments

collapse all

Node IDs of all nodes within the specified factorGraph object, returned as an N-element row vector. N is the total number of nodes in the graph. Note that the node IDs may not be continuous within the vector.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2022a

See Also

Objects