\HeaderA{list2Matrix}{Converts list into matrix}{list2Matrix}
\keyword{models}{list2Matrix}
\begin{Description}\relax
Converts a named list representation of a graph into matrix
\end{Description}
\begin{Usage}
\begin{verbatim}
list2Matrix(namedList, type="interaction")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{namedList}] Named list.
\item[\code{type}] Character: either interaction or complex
\end{ldescription}
\end{Arguments}
\begin{Value}
A matrix. A bait-prey matrix if type is "interaction" with baits indexing
the columns and prey the rows or a protein complex incidence graph with
complexes indexing the columns and proteins, the rows.

If type is interaction, the names of the list are the baits and the entries
of the list correspond the prey found by each bait.

If type is complex, the names of the list are the names of the protein complex
and the entries are the members of each corresponding complex.
\end{Value}
\begin{Author}\relax
Tony Chiang <tchiang@ebi.ac.uk>
\end{Author}

