Network graph of class labels and associated node type