Chain graph implemented