function [G, Nodes, Levels] = rmNode(rmIdx, adja, nodeInfo, levelIdx),
% Remove nodes 
%	[G, Nodes, Levels] = rmNode(rmIdx, adja, nodeInfo, levelIdx),
%

numRM = length(rmIdx);
G = adja;

G(rmIdx,:)=[];
G(:,rmIdx)=[];

k=1;
for i=1:length(nodeInfo),
	if sum(i==rmIdx)==0,
		Nodes{k} = nodeInfo{i};
		k=k+1;
	else
		Levels{nodeInfo{i}.level} = setdiff(levelIdx{nodeInfo{i}.level},i);
	end
end

