Current location - Training Enrollment Network - Mathematics courses - Are the array elements in the adjacent table arranged orderly in the following table? I'm sorry that my data structure is a mess.
Are the array elements in the adjacent table arranged orderly in the following table? I'm sorry that my data structure is a mess.
The problem is the adjacency table, and the array elements are subscript! ?

The array subscripts are ordered, but the size of the storage elements is not necessarily! Is that what you mean?

Generally, learning adjacency list storage in data structure now will be taught by pointers!

Of course, you can also use vector to create dynamic arrays to store them.