Transform a square matrix to an edge-list
Arguments
- A
A square matrix
- digraph
Whether the matrix is directed or not
- valued
Add a third columns with the valued of the relationship
- loops
Whether the loops are retained or not
Value
This function transform the matrix into an edgelist
Author
Alejandro Espinosa-Rada