4.4

4.4 | 25 ratings Rate this file 259 downloads (last 30 days) File Size: 32.1 KB File ID: #4266

grTheory - Graph Theory Toolbox

by Sergii Iglin

 

16 Dec 2003 (Updated 09 Nov 2009)

Code covered by BSD License  

27 functions for different tasks of graph theory

Download Now | Watch this File

File Information
Description

GrTheory - Graph Theory Toolbox.
Functions:
grBase - find all bases of digraph;
grCoBase - find all contrabases of digraph;
grCoCycleBasis - find all independent cut-sets for a connected graph;
grColEdge - solve the color problem for graph edges;
grColVer - solve the color problem for graph vertexes;
grComp - find all components of graph;
grCycleBasis - find all independent cycles for a connected graph;
grDecOrd - solve the problem about decomposition of the digraph to the sections with mutually accessed vertexes (strongly connected components);
grDistances - find the distances between any vertexes of graph;
grEccentricity - find the (weighted) eccentricity of all vertexes, radius, diameter, center vertexes and the periphery vertexes;
grIsEulerian - find the Eulerian cycle of graph;
grIsomorph - solve the problem about isomorphism for two graphs;
grMaxComSu - solve the maximal complete sugraph problem for the graph;
grMaxFlows - solve the maximal flow problem for the digraph;
grMaxMatch - solve the maximal matching problem for the graph;
grMaxStabSet - solve the maximal stable set problem for the graph;
grMinAbsEdgeSet - solve the minimal absorbant set problem for the graph edges;
grMinAbsVerSet - solve the minimal absorbant set problem for the graph vertexes;
grMinCutSet - solve the minimal cut-set problem for the digraph;
grMinEdgeCover - solve the minimal edge cover problem for the graph;
grMinSpanTree - solve the minimal spanning tree problem for the graph;
grMinVerCover - solve the minimal vertex cover problem for the graph;
grPERT - solve the project evaluation research task;
grPlot - draw the plot of the graph (digraph);
grShortPath - solve the shortest path problem for the digraph;
grTranClos - built the transitive closure for the digraph;
grTravSale - solve the nonsymmetrical traveling salesman problem;
grValidation - auxiliary function (the data validation);
grTheoryTest - test program for all functions.

Required Products Optimization Toolbox
MATLAB release MATLAB 7.0.1 (R14SP1)
Other requirements PC
Zip File Content  
Other Files
Contents.m,
grBase.m,
grCoBase.m,
grCoCycleBasis.m,
grColEdge.m,
grColVer.m,
grComp.m,
grCycleBasis.m,
grDecOrd.m,
grDistances.m,
grEccentricity.m,
grIsEulerian.m,
grIsomorph.m,
grMaxComSu.m,
grMaxFlows.m,
grMaxMatch.m,
grMaxStabSet.m,
grMinAbsEdgeSet.m,
grMinAbsVerSet.m,
grMinCutSet.m,
grMinEdgeCover.m,
grMinSpanTree.m,
grMinVerCover.m,
grPERT.m,
grPlot.m,
grShortPath.m,
grTheoryTest.m,
grTranClos.m,
grTravSale.m,
grValidation.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (29)
21 Dec 2003 x s  
12 Feb 2004 Alex Pesch

I think, the Optimization Toolbox is required. The function MaxFlows for example is not running here, because 'linprog' doesn't exist.

23 Feb 2004 Nick Valuy  
12 Mar 2004 ahmed kolsi  
14 Jun 2004 Michael Waisberg

The plotgraph function only works well with small graphs. It produces awful graphs when using more than four vertex. The toolbox could come with some function to format the data. I used one called cedge.m which worked well. Also, to use this toolbox you will need to install at least arrow.m.

13 Dec 2004 Alexandre Felt

Great job, works fine!

29 Dec 2004 Zhenya Donchik

I`m very interesting by the theory of managment

02 Apr 2005 Vlastislav Weiner

Salesman problem doesn't work without miqp function. But where could I find it???

10 Apr 2005 Igor Yegorkin

Beautiful job!

25 May 2005 sanith Wijesinghe  
31 Aug 2005 Pablo Riera

Excellent

20 Oct 2005 giu giu

There are some bugs

22 Jul 2006 wael rashwan  
28 Jun 2007 li yifan china  
21 Aug 2007 Ahmad AbdulWakeel

it is very good toolbox

28 Sep 2007 gloria macapagal  
19 Oct 2007 hiro mano  
19 Oct 2007 xue huiyan

thanks

05 Feb 2008 xm blade

Good package it sounds!
One additional question: Could the input be thousands of nodes in one graph?

06 May 2008 jason tharmaraj

can you send me complex networks analysis codes

07 May 2008 Andi Patombongi  
23 May 2008 Swamy Korada

Great work

Is there a script to find all possible paths between 2 nodes?

10 Aug 2008 fan fanwen  
18 Aug 2008 Tim Davis

Comment to Swamy Korada: Finding all possible paths between 2 nodes is an NP-hard problem. Any such algorithm would either give an approximate solution, or take exponential time.

19 Aug 2008 li pengfei  
26 Aug 2008 rose rose

very good!

11 Sep 2008 Chao Wang

good job

19 Nov 2008 Andrew Jackson  
02 Sep 2009 Florian

does exactly what I'm looking for!
A minor bug in grMaxComSu.m

If the graph itself is a clique e.g. [1 2; 1 3; 2 3] the function gives an error. E1 in the code is then empty. Possibly account for this cas in a future version. Great work!

Please login to add a comment or rating.
Updates

A bug in grPlot is corrected.

24 Dec 2003

Draws the graph and solves the tasks: Maximal Flow, Maximal Matching, Minimal Vertex Cover, Minimal Spanning Tree, Shortest Path etc.

20 Jan 2004

Draws the graph and solves the tasks: Maximal Flow, Maximal Matching, Minimal Vertex Cover, Minimal Spanning Tree, Shortest Path etc.

09 Feb 2004

ShortPath had update for fast calculation

26 Aug 2004

The new e-mail is added

14 Sep 2004

PlotGraph is updated

11 Oct 2004

CycleBasis is updated

28 Mar 2006

All functions are updated, new functions are added.

30 Mar 2006

Summary title is updated

26 Apr 2006

The function grMinAbsEdgeSet are included.

09 May 2006

The grMinSpanTree had update;
two new functions are created.

16 May 2006

The function grPERT is added.

29 Jun 2006

Two new functions is added. One function with bugs is deleted.

05 Jul 2006

Two new functions is added

08 Aug 2006

The function grDecOrd has update.

25 May 2007

A bug in grPlot is corrected.

11 Jul 2009

two new functions are added

09 Nov 2009

Bugs in some functions for work with the isolated vertexes were corrected. Thanks to Marcin Eichner!

Tag Activity for this File
Tag Applied By Date/Time
vertex Sergii Iglin 22 Oct 2008 07:11:11
edge Sergii Iglin 22 Oct 2008 07:11:11
matching Sergii Iglin 22 Oct 2008 07:11:11
cover Sergii Iglin 22 Oct 2008 07:11:11
spanning Sergii Iglin 22 Oct 2008 07:11:11
tree Sergii Iglin 22 Oct 2008 07:11:11
flows Sergii Iglin 22 Oct 2008 07:11:11
cutset Sergii Iglin 22 Oct 2008 07:11:11
clique Sergii Iglin 22 Oct 2008 07:11:11
graph Sergii Iglin 30 Oct 2008 17:14:13
graphs Sergii Iglin 30 Oct 2008 17:14:14
graph theory Sergii Iglin 30 Oct 2008 17:14:14
graph Alan Bindemann 16 Jan 2009 14:15:44
clique gabriella21 Guzman 16 Apr 2009 05:37:25
cover gabriella21 Guzman 16 Apr 2009 05:37:29
graphs gabriella21 Guzman 16 Apr 2009 05:37:34
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com