On the use of graph models to achieve individual and group fairness