add i for differentiating intermediary edges for edgeType: 'node'