add points information to edges