Transitive Closure

Transitive Closure

You are now following this Submission

% This function performs Transitive Closure on the input path matrix 'm',
% which is a directed acyclic graph (DAG),
% using simple matrix multiplication method.
% Example:
% input: m = [ 0 1 0;
% 0 0 1;
% 0 0 0];
% output: m = [ 0 1 1;
% 0 0 1;
% 0 0 0];

Cite As

Wei-Rong Chen (2026). Transitive Closure (https://au.mathworks.com/matlabcentral/fileexchange/50143-transitive-closure), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1

-

1.0.0.0