5.0

5.0 | 3 ratings Rate this file 145 downloads (last 30 days) File Size: 3.87 KB File ID: #15973

Graph GUI

by Joseph Kirk

 

17 Aug 2007 (Updated 28 Aug 2007)

Code covered by BSD License  

create/edit graphs of vertices and edges

Download Now | Watch this File

File Information
Description

Edit a graph or draw a new one with this GUI.

Usage:
>> graph_gui;
or
>> graph_gui(A,xy);
 
Controls:
Use the radio buttons to select an action:
1. To DRAW a new VERTEX, select 'Draw' and 'Vertex'. Then click inside the axes in the desired location.
2. To DELETE a VERTEX, select 'Delete' and 'Vertex'. Then click inside the axis near the desired vertex.
3. To DRAW an EDGE, select 'Draw' and 'Edge'. Then click and hold the mouse button down on the starting vertex and drag the mouse to the vertex of the desired connection.
 a. If 'Directed' is selected, a 1-way edge will be created from the first vertex to the second.
 b. If 'Undirected' is selected, a 2-way edge between the first vertex and the second vertex will be created.
 Note: If no vertices exist, no edges will be created.
4. To DELETE an EDGE, select 'Delete' and 'Edge'. Then click and hold the mouse button down on the starting vertex and drag the mouse to the vertex of the desired connection to delete.
 a. If 'Directed' is selected, only the 1-way edge between the first vertex and the second will be deleted.
 b. If 'Undirected' is selected, the entire 2-way edge between the first vertex and the second vertex will be deleted.
5. Click the 'Latch Points' checkbox to toggle between rounded and unrounded (x,y) points.
6. The number in the edit box specifies a rounding value. For example, a value of 0.5 rounds each (x,y) point to the nearest 0.5
7. Click the 'Save Graph' button to save the adjacency matrix (A) and the coordinates (xy) of the graph to a MAT file.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
20 Aug 2007 oliver kai

very nice!
Thanks

09 Dec 2007 Inigo Martincorena

Really excellent!. Thanks.

03 Jun 2009 Michael

just what I was looking for

Please login to add a comment or rating.
Updates
28 Aug 2007

Enhanced plotting format to accommodate directed graphs.

Tag Activity for this File
Tag Applied By Date/Time
gui tools Joseph Kirk 22 Oct 2008 09:23:22
example Joseph Kirk 22 Oct 2008 09:23:22
graph Joseph Kirk 22 Oct 2008 09:23:22
gui Joseph Kirk 22 Oct 2008 09:23:22
draw Joseph Kirk 22 Oct 2008 09:23:22
gplot Joseph Kirk 22 Oct 2008 09:23:22
gplotd Joseph Kirk 22 Oct 2008 09:23:22
 

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