Could you tell me how to implement an edge-data structure please?

Thanks