added graph layout argument