Detecting Communities in Networks and Performance Prediction Based on Relation Strength Measurement