files for finding deree of element in graph