Construct Graph