Remove non-gene nodes from pathway and reconnect nodes

propagate_gene_edges(graph)

Arguments

graph

Biological pathway

Value

graph with only genes as nodes

Examples

dag <- create_random_DAG(30, 0.2)
propagate_gene_edges(dag)
#> A graphNEL graph with directed edges
#> Number of Nodes = 0 
#> Number of Edges = 0