basic graph selection procedure