Measuring Proximity in Attributed Networks for Community Detection