min on hash graph