A graph-based approach to inequality assessment