A material selection model using graph theory and matrix approach