Implemented async building of a graph