fix PyCommDete graph