An Automatic Graph Based Approach for Artery Vein Classification in Retinal Images