powered by
Add a node with assigned layer and attributes to a graph
addNode(g, nodeName, layerName, attributes = NA)
The mully graph, with the new node.
The input graph.
The name of the node to add.
The name of the layer to be assigned to the node.
The attributes of the node to add. This argument must be a named list.
g=mully::demo() attributes=list("specie"="Homo Sapiens") addNode(g = g,nodeName = "g3",layerName = "Gene",attributes = attributes)
Run the code above in your browser using DataLab