FormationControlSimulation/SOURCE/networks-toolbox/graphRadius.m

11 lines
257 B
Matlab
Raw Normal View History

2019-06-17 14:31:50 +07:00
% The minimum vertex eccentricity is the graph radius.
%
% Inputs: adjacency matrix (nxn)
% Outputs: graph radius
%
% Other routines used: vertexEccentricity.m
% GB: last updated, Oct 10 2012
function Rg=graphRadius(adj)
Rg=min( vertexEccentricity(adj) );