% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class-network.R
\name{get_source}
\alias{get_source}
\title{Get Source Type from Cograph Network}
\usage{
get_source(x)
}
\arguments{
\item{x}{A cograph_network object.}
}
\value{
A character string indicating the input type (e.g., "matrix", "tna",
"igraph", "edgelist"), or "unknown" if not set.
}
\description{
Extracts the source type string from a cograph_network object's metadata.
}
\examples{
mat <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3)
net <- as_cograph(mat)
get_source(net)  # "matrix"
}
\seealso{
\code{\link{as_cograph}}, \code{\link{get_meta}}
}
