|
|
| 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
|
|
|
| 09 Dec 2007 |
Inigo Martincorena
|
|
|
| 03 Jun 2009 |
Michael
|
|
|
| Updates |
| 28 Aug 2007 |
Enhanced plotting format to accommodate directed graphs. |
|
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