Work with only one graph selected.