function isEmpty = emptyGraph(G)
% part of eulerWalk. Return true if G has no edges left.

% return true if we can't find any adjacency elements in G that are
% defined (not -1)
isEmpty = ~(G~=-1);
