% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{.remove_directionality}
\alias{.remove_directionality}
\title{Canonicalise edge direction}
\usage{
.remove_directionality(df)
}
\arguments{
\item{df}{A data.frame with at least \code{source} and \code{target} columns
(character).}
}
\value{
The same data.frame with \code{source <= target} for every row.
}
\description{
Swaps \code{source} and \code{target} so the lexicographically smaller node is
always in the \code{source} column.
}
\keyword{internal}
