4
if rhs<>1 then error(39), end
6
if g('directed')<>1 then
7
error('The graph must be directed')
9
// girth of graph g (length of the shortest cycle)
16
ta=g('tail');he=g('head');
18
X=sparse([ta' he'],ones(ta)',[n n]);Y=X;
21
if sum(diag(Y))<>0 then