public static void applySampledState(SampledVertex v,Attributes attrs){
  String str=attrs.getValue(SAMPLED_ATTR);
  if (str != null)   v.sample(new Integer(str));
}

public static void applySampledState ( SampledVertex v , Attributes attrs ) { String str = attrs . getValue ( SAMPLED_ATTR ) ; if ( str != null ) v . sample ( new Integer ( str ) ) ; }
parses the attributes data for information of the sampled state of the vertex and sets the vertex to the corresponding state .
