Puts the lowest id node among every dyad as source (and the other as target)
Usage
switch.edges(edges)
Value
A list containing two data frames.
Arguments
edges
A matrix or data frame structured as a list of edges
Author
George Vega Yon
Details
edge.list transforms the input into a two-elements list containing a
dataframe of nodes (with columns “id” and “label”) and a
dataframe of edges. The last one is numeric (with columns “source”
and “target”) and based on auto-generated nodes' ids.