You'll want to pass `i` to `fx` and `fy` here, where `i` is the number of nodes previously added (for consistency with the constructor behavior).