[BioC] graph classes: how to combine multiple graphs into a single graph
Moshe Olshansky
olshansky at wehi.EDU.AU
Thu Feb 17 04:59:22 CET 2011
Hi Paul,
If I understand you correctly, one possibility would be to take a union of
the nodes of the two (or several) graphs, start with an empty adjacency
matrix (or list of edges) and then add all the edges appearing in all the
graphs. Then you should be able to build a graph from that adjacency
matrix (or a list of nodes and a list of edges).
Regards,
Moshe.
> help (package='graph') describes many methods, but none of those
> mentioned seem to combine two graphs into a third -- perhaps even
> combining attributes along the way.
>
> graph::union looked promising, but is defined such that it only works if
> the nodes in each graph are identical.
>
> Any suggestions? Perhaps objects of the new multigraph class can be
> constructed from multiple graphs?
>
> Thanks -
>
> - Paul
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
>
______________________________________________________________________
The information in this email is confidential and intend...{{dropped:4}}
More information about the Bioconductor
mailing list