I am working on clustering problem where I have something called distance matrix. This distance matrix is something like:
- the number of nodes(g) are N (dynamic)
- This matrix is Symmetric (dist[i,j]==dist[j,i])
- g1,g2,.... are object (they contain strings , integers and may even more..)
- I want to be able to reach any value by simple way like dist[4][3] or even more clear way like dist(g1,g5) (here g1 and g5 may be some kind of pointer or reference)
- many std algorithm will be applied on this distance matrix like min, max, accumulate ..etc
- preferably but not mandatory, I would like not to use boost or other 3rd party libraries
What is the best standard way to declare this matrix.
Aucun commentaire:
Enregistrer un commentaire