A question about the construction of a node-link graph based on incident matrix
3
0
Entering edit mode
Yilin Liu ▴ 40
@yilin-liu-1232
Last seen 10.2 years ago
I want to construct a node-link graph. What is known is the ID of the two nodes on the terminal of each link (link ID is also known). Based on this information,how can I construct a node-link graph. Thanks.
graph graph • 1.0k views
ADD COMMENT
0
Entering edit mode
@sean-davis-490
Last seen 3 months ago
United States
On May 5, 2005, at 8:51 AM, Yilin Liu wrote: > I want to construct a node-link graph. What is known is the ID of the > two nodes on the terminal of each link (link ID is also known). Based > on > this information,how can I construct a node-link graph. Do you think the graph package could do what you want? http://www.bioconductor.org/repository/release1.5/package/html/ graph.html http://www.bioconductor.org/repository/devel/vignette/graph.pdf Sean
ADD COMMENT
0
Entering edit mode
Yilin Liu ▴ 40
@yilin-liu-1232
Last seen 10.2 years ago
I want to construct a node-link graph. What is known is the ID of the two nodes on the terminal of each link (link ID is also known). Based on this information,how can I construct a node-link graph. Thanks.
ADD COMMENT
0
Entering edit mode
@wolfgang-huber-3550
Last seen 3 months ago
EMBL European Molecular Biology Laborat…
Yilin Liu wrote: > I want to construct a node-link graph. What is known is the ID of the > two nodes on the terminal of each link (link ID is also known). Based on > this information,how can I construct a node-link graph. > Ciao Yilin, Have a look at the function ftM2graphNEL in the graph package. For example From <- c("A","A","C","C") To <- c("B","C","B","D") L <- cbind(From,To) W <- 1:4 G1 <- ftM2graphNEL(L, W, edgemode="directed") More info is in the man page. Best regards Wolfgang ------------------------------------- Wolfgang Huber European Bioinformatics Institute European Molecular Biology Laboratory Cambridge CB10 1SD England Phone: +44 1223 494642 Fax: +44 1223 494486 Http: www.ebi.ac.uk/huber
ADD COMMENT

Login before adding your answer.

Traffic: 462 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6