update guide to construct graph