Graphs for categorical data