The polarity and linearity of the nitrile function add for extra intermolecular cohesion that makes nitrile boiling points higher than those of the corresponding alkanes of similar molecular weight.
Similarly to an alkyne, the three atoms involved in the function C-C(triple)N are linear.