basic graph construction
update