graph: manage currentSample more completely

[#46139591]