thanks.
well as i already mentioned i am working on a graph problem...e is the edge weight
e(u,v) where u and v are vertices
so i scan u and v (till number of edges)
and whilescanning e i used maps and used e[v1+v2+v1*v2]
hope u get it
or shud i post my entire code