The `NetworkX.hasedge` method has an issue when a `0` id is passed in as the target. The check should look for `None` instead.