comparison toolboxes/graph_visualisation/graphViz4Matlab/layouts/Circularlayout.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 classdef Circularlayout < Gvizlayout
2 % A layout that also uses graphviz but calls twopi instead of neato to
3 % to display the graph like a tree.
4 %
5 % Matthew Dunham
6 % University of British Columbia
7 % http://www.cs.ubc.ca/~mdunham/
8 methods
9 function obj = Circularlayout(name)
10 if(nargin < 1)
11 obj.name = 'circularlayout';
12 else
13 obj.name = name;
14 end
15 load glicons;
16 obj.image = icons.circular;
17 obj.shortDescription = 'Circular Layout (GraphViz)';
18 end
19
20 end
21
22 methods(Access = 'protected')
23
24 function callGraphViz(obj)
25 % Call GraphViz to determine an optimal layout. Write this layout in
26 % layout.dot for later parsing.
27 err = system(['circo -Tdot -Gmaxiter=5000 -Gstart=7 -o ',obj.layoutFile,' ',obj.adjFile]);
28 if(err),error('Sorry, unknown GraphViz failure, try another layout'); end
29 end
30
31 end
32
33 end