hotfix to allow multiple edges between nodes