I’m pretty new to Julia and was wondering what the preferred practice for storing something like a bunch of coordinates, mesh triangles or graph edges?

Say I want to store edges in a graph. The vertices are labelled by indices 1,2,3,…

Would I want to be storing the edges as 2-tuples in a Vector{Tuple{Int, Int}}, since I know that each edge is stored as exactly 2 vertex indices?

Or would it be better to store the edges in a 2-by-N matrix structure Matrix{Int} (each edge stored as a column, since afaik looping over columns is preferred over rows)?

Or is there a third way I don’t know of which is better than both of the above?