I know very little about programming, so this is a case of not knowing where to look for the answer. I am looking to create a data structure like the following:
vertexTopology = {vertexIndex: {clusterIndexes: intersection point}}
however cluster indexes in reality is a set consisting of the indexes of the clusters. So what I really have now is:
vertexTopology = {5: [[(1, 2, 3), intx_1],
[(2, 3, 4), intx_2]]
6: [[(1, 2, 3), intx_3]]
...}
How can I create a unique index associated to each cluster set AND its vertex index? Something like:
vertexTopology = {5: {index associated with (1, 2, 3) AND vertex 5, intx_1},
{index associated with (2, 3, 4) AND vertex 5, intx_2},
6: {index associated with (1, 2, 3) AND vertex 6, intx_3}]
...}
I'm not sure that what I am looking to do is best achieve with dictionaries, so any suggestion is much welcomed!
Bellow is an image of a four point intersection, just so you can picture a bit what I dealing with.

((1,2,3), 5)would itself be a viable index; it's simple, hashable, sortable, etc. Or you do want an integer?frozenset, which is even better because then you don't have to worry about the order.]