function p = complete(G)
% COMPLETE Return 1 if G is a complete graph, 0 otherwise.
% p = complete(G)

n = length(G);
p = isequal(ones(n,n), G);
