fix regression reported in #451: instance-check of _Graph1DBase instead of Graph