Codes for erasures over directed graphs