Optimal decision for the market graph identification problem in a sign similarity network