Hi,
So I am doing a project in which i need to heavily use a graph structure. I have tried several graph package in the past, but they are not flexible enough for my use case. So I started to wonder if the following is possible in an array like structure. Because most of the headache with these graph packages is that they come with overhead and very specific use cases in mind.
So this is what I would want it to look like(see pic). The idea is that instead of trying to add Meta data into a graph package. I add the Metadata directly in a specially developed array. So in this example the first element of the tuple shows the connection between nodes very similar to an adjacency matrix. the second element shows metadata concerning the edge (either ‘1’ or ‘0’ if there is an edge otherwise Nothing). This is very similar to the concept of edge weights but these aren’t weights in this case but Characters, could be a string in another use case for instance.
I know I can do the above part in an array. But here is the unknown/tricky part for me, I would also like the column and row headers to refer directly to their header. So if bellow array is named g. I could write:
>g['J',"Node_3"]
(1,1)
Is it possible to adjust an array so It accepts that?
best,