Graph generators for 4d and 4e