Usin a map from stl, create the adiancy matrix