Learn R Programming

rBiopaxParser (version 2.10.0)

intersectGraphs: This function returns a graph computed by the insection of supplied graph1 and graph2.

Description

This function returns a graph computed by the insection of supplied graph1 and graph2. Layout and weights of graph1 are kept.

Usage

intersectGraphs(graph1, graph2)

Arguments

graph1
graphNEL
graph2
graphNEL

Value

Returns the intersection of graph1 and graph2.

Examples

Run this code
# load data
 data(biopaxexample)
 pwid1 = "pid_p_100002_wntpathway"
 pwid2 = "pid_p_100146_hespathway"
 mygraph1 = pathway2RegulatoryGraph(biopax, pwid1)
 mygraph2 = pathway2RegulatoryGraph(biopax, pwid2)
 plotRegulatoryGraph(intersectGraphs(mygraph1,mygraph2))

Run the code above in your browser using DataLab