Count Loops in a Graph
by Joseph Kirk
12 Apr 2006
(Updated 12 Sep 2012)
Calculates the number of loops in a graph consisting of nodes and edges
|
Watch this File
|
| File Information |
| Description |
The code contained in these files counts the number of loops (cycles) in a network (graph) that consists of nodes and edges. The user can:
- Obtain a network (from a file or randomly generated)
- View the network (optional)
- Reduce the network (optional)
- View the reduced network (optional)
- Start the counting algorithm
- Save the network to a file (optional)
- Save the loops to a file (optional)
- View the loop length distribution (optional)
There are two ways to execute the code:
1. GUI (loops_gui.m) opens an interface with buttons
2. M-FILE (run_loops.m) runs all the code without the GUI interface
The algorithm used to count the loops is an iterative process I developed that I call the ILCA (Iterative Loop Counting Algorithm). It transforms the network into a tree and does a *depth first* search on the tree for loops. This is a *brute force* technique as there are no known (to my knowledge anyway) algorithms for providing a good estimation of the number of loops/cycles in a network/graph. |
| MATLAB release |
MATLAB 8.0 (R2012b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (6) |
| 13 Mar 2012 |
Zi Sue
|
|
|
| 21 Mar 2009 |
Ben Petschel
|
|
|
| 30 Jun 2008 |
zahra shahbazi
|
|
|
| 19 Aug 2007 |
hamza drid
|
|
|
| 06 Jun 2007 |
Simone Severini
|
|
|
| 19 Apr 2006 |
ed churchill
|
|
|
| Updates |
| 13 Apr 2006 |
1) Minor bug fixes.
2) Added more example graph files in the 'nets/' folder.
3) Updated description. |
| 13 Apr 2006 |
1. Enhancement: Added a SCRIPT in addition to the GUI, as well as HTML created using MATLAB Publisher
2. Change to file details: Updated the title and description |
| 02 Mar 2007 |
1. Reworked the GUI, 2. Added some error checking, 3. Added new functionality to save networks, 4. Deprecated all of the secondary functions and added them as sub-functions in 'loops_gui.m' and 'run_loops.m' |
| 12 Sep 2012 |
Updated to include an App file for R2012b |
|
Contact us