Add graph document