% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/converters.R
\name{to_matrix}
\alias{to_matrix}
\title{Convert edge data frame to adjacency matrix}
\usage{
to_matrix(edges, symmetric = TRUE)
}
\arguments{
\item{edges}{A data frame with \code{from}, \code{to}, \code{weight} columns.}

\item{symmetric}{Logical. If \code{TRUE} (default), produces a symmetric matrix.}
}
\value{
A sparse Matrix.
}
\description{
Convert edge data frame to adjacency matrix
}
\examples{
data(biblio_data)
edges <- reference_network(biblio_data, min_occur = 2)
to_matrix(edges)
}
