Learn R Programming

mully (version 2.1.38)

isLayer: Verify if the layer exists in a graph

Description

Verify if the layer exists in a graph

Usage

isLayer(g, name)

Value

A boolean value.

Arguments

g

The input graph.

name

The name of the layer.

Examples

Run this code
g = mully("MyFirstMully",direct = FALSE)
g = addLayer(g, c("Gene", "Drug", "Disease"))
isLayer(g,"Drug")

Run the code above in your browser using DataLab