% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class-network.R
\name{.create_cograph_network}
\alias{.create_cograph_network}
\title{Create Unified cograph_network Object}
\usage{
.create_cograph_network(
  nodes,
  edges,
  directed,
  meta = list(),
  weights = NULL,
  data = NULL,
  node_groups = NULL,
  type = NULL
)
}
\arguments{
\item{nodes}{Data frame with node information (id, label, x, y, ...).}

\item{edges}{Data frame with edge information (from, to, weight).}

\item{directed}{Logical. Is the network directed?}

\item{meta}{List with consolidated metadata: source, layout, tna sub-fields.}

\item{weights}{Full n×n weight matrix for TNA compatibility, or NULL.}

\item{data}{Original estimation data (sequence matrix, edge list, etc.), or NULL.}

\item{node_groups}{Optional node groupings data frame.}
}
\value{
A cograph_network object (named list with class).
}
\description{
Internal constructor that creates a cograph_network object with the unified
format. Both cograph() and as_cograph() use this to ensure identical output.
}
\keyword{internal}
