graph now works with groups