Output {the attribute score: the
relation group score:
Var player set ; core-player score ;
social group ;
begin
 for each do
   CalculateSampleValue (pi); //calculate
 the player attribute sore
  for each relation do
   if = 0 is not exist
    0; // is not exist
   else
    CalculateRelationValue ( );
   //calculate relation score
   end if
  end for
 end for
 Return ( , )
end.
Algorithm 2: Calculate RA and Social group value.