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

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cc4b1211e677
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