Categorical network models for systemic risk measurement