avoid creating each arc twice

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>