[BioC] possible to create graph from edge list file?

Wolfgang Huber huber at ebi.ac.uk
Thu Jan 31 01:24:03 CET 2008


Dear Gergely,

try

  library("graph")
  ? ftM2graphNEL

Best wishes
	Wolfgang
------------------------------------------------------------------
Wolfgang Huber  EBI/EMBL  Cambridge UK  http://www.ebi.ac.uk/huber


Gergely Zahoranszky wrote:
> Hi,
> 
> I am quite a newbie in R specially using R graph package. I looked over lot of references relating this package but I could not figure out how to create a graph from an edge list file which is a simple text file. I am interested in undirected graphs. Could anyone please give me a simple example how to do it? Let's say I have a text file like this:
> 
> node1 node2
> node1 node4
> node2 node3
> node3 node4
> 
> 
> I would like to use this graph to calculate the cluster coefficient and average edgenumber.
> 
> Thanks!
> 
> 
> Zahoo
> 
> 
>



More information about the Bioconductor mailing list