IMAT 2022 Logical reasoning question

There are 10 students in a class and they like visiting each other.
A visit means that one student visits the home of another student.
We know that each student in the class has visited the same number of students.
No two students in the class have both visited each other.
What is the maximum number of students that a student in this class could have visited?
A) 4 B) 2 C) 5 D) 8 E) 9

Hi!

The answer is A).
I’m not sure how to visualize the question properly, this is my work, it’s flawed and took me too long to solve, i’d love to compare to someone else’s strategy!

Thanks for your help!