build directed graph load