% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/network_utils.R
\name{combineNetworks}
\alias{combineNetworks}
\title{Merge Multiple MetaPathNet-Style Networks}
\usage{
combineNetworks(...)
}
\arguments{
\item{...}{Two or more MetaPathNet-style network tables.}
}
\value{
A 3-column matrix containing the merged MetaPathNet-style edge list with
duplicated rows removed.
}
\description{
Merges two or more MetaPathNet-style edge lists into a single network.
All inputs must be 3-column matrices or data.frames corresponding to
\code{source}, \code{target}, and \code{interaction_type}.
}
\details{
\itemize{
\item All inputs must be MetaPathNet-style edge lists with at least
3 columns corresponding to \code{source}, \code{target}, and
\code{interaction_type}.
\item Only the first 3 columns of each input are used.
\item Duplicated rows across input networks are removed after merging.
}
}
\examples{
## Example 1 — Merge two example network subsets

## Load the precomputed example network; see buildKeggNetwork() for its construction
data(MetaPathNet_example_network)

## Create two small example network subsets
example_network_1 <- MetaPathNet_example_network[seq_len(20), , drop = FALSE]
example_network_2 <- MetaPathNet_example_network[21:40, , drop = FALSE]

## Merge both subsets into one edge list
merged_network <- combineNetworks(example_network_1, example_network_2)

head(merged_network)

}
\seealso{
\code{\link{buildKeggNetwork}}, \code{\link{buildCrossSpeciesNetwork}}
}
