Plot a Directed Graph
by Joseph Kirk
28 Aug 2007
(Updated 15 Apr 2008)
plots a directed graph represented by an adjacency matrix and xy points
|
Watch this File
|
| File Information |
| Description |
GPLOTD(A,XY) Plots the Directed Graph represented by adjacency matrix A and points xy using the default style described below
GPLOTD(A,XY,PARAM1,VAL1,...) Plots the Directed Graph using valid parameter name/value pairs
Inputs:
A - NxN adjacency matrix, where A(I,J) is nonzero if and only if there is an edge between points I and J
xy - Nx2 matrix of x/y coordinates
... - Parameter name/value pairs that are consistent with valid PLOT parameters can also be specified
Default Plot Style Details:
1. Undirected (2-way) edges are plotted in solid black lines
2. Directed (1-way) edges are plotted in two styles
a. If the edge connects a larger vertex ID with a smaller ID, the edge is plotted as a blue dashed line
b. If the edge connects a smaller vertex ID with a larger ID, the edge is plotted as a red dotted line
3. Any vertex that is connected to itself is plotted with a black circle around it |
| Acknowledgements |
This file inspired
Plot A Directed Graph (V2.0).
|
| 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 (9) |
| 21 Nov 2012 |
Alexander
|
|
|
| 15 Nov 2011 |
YF
|
|
|
| 02 Nov 2011 |
Joseph Kirk
|
|
|
| 31 Oct 2011 |
YF
|
|
|
| 07 May 2010 |
David Grymin
|
|
|
| 29 Aug 2007 |
Doug Harriman
|
|
|
| 29 Aug 2007 |
The Author
|
|
|
| 28 Aug 2007 |
Kevin Nasman
|
|
|
| 28 Aug 2007 |
Scott Miller
|
|
|
| Updates |
| 15 Apr 2008 |
simplified calculations, updated example |
|
Contact us