Main Content


Check if factor graph is connected


connected = isConnected(graph) returns a logical flag indicating whether the specified factorGraph object graph, contains nodes that all have at least one connection.

Input Arguments

collapse all

Factor object, specified as a factorGraph object.

Output Arguments

collapse all

Graph is connected in factor graph, returned as 1 (true) if the factorGraph has a single connected component and 0 or false if it does not have a single connected component.

Extended Capabilities

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

Version History

Introduced in R2022a

See Also