able to implement up to 4d point graphs