Carbon nitrides are compounds of carbon and nitrogen.
Dicyanopolyynes are composed of a chain of carbon atoms with alternating single and triple bonds, terminated by nitrogen atoms. Although not a polyyne dicyanoacetylene otherwise fits within this series.