You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This can be used for finding the linearly independent equations derived from Kirchhoff's second law. This function finds a set of fundamental cycles that will correspond to linearly independent circuit conservation equations.
Example: fundamental cycles of complete graph on 4 vertices including self-loops at each vertex:
cyclebasis(ones(3,3),'path') % returns {1,2,[1,2,3],3}
See the help text for more details.
Cite As
Ben Petschel (2026). cyclebasis (https://www.mathworks.com/matlabcentral/fileexchange/24561-cyclebasis), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1 (3.21 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
