added adjacency builder mixin, DAG/BG bug fixes