Make adjacency list graph independent of boost to get rid of this `if()`.