Coverings of surfaces and graphs