Adaptive and hybrid classification with domain-dependent digraphs