Code covered by the BSD License  

Highlights from
Graph GUI

5.0

5.0 | 5 ratings Rate this file 9 Downloads (last 30 days) File Size: 3.87 KB File ID: #15973
image thumbnail

Graph GUI

by Joseph Kirk

 

17 Aug 2007 (Updated 28 Aug 2007)

create/edit graphs of vertices and edges

| 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 (5)
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

17 Feb 2010 Amr  
24 Jul 2011 Munna Vinnu  
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

Contact us at files@mathworks.com