addNodes: Add nodes to RedeR graphs.

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Method to add nodes to an active RedeR session.

Usage

1
addNodes(obj, nodes)

Arguments

obj

Object of RedPort Class.

nodes

Node sequence as an array <array of strings>

Value

Add graph objects.

Note

Prior calling this method invoke RedeR application via XML-RPC server (i.e. 'calld').

Author(s)

Mauro Castro

See Also

RedPort

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Initialize igraph
library(igraph)

nodes<-c("n1","n2","n1","n3","n1","n4","n1","n5","n1","n6","n1","n7")

## Not run: 

  rdp <- RedPort()
  calld(rdp)
  addNodes(rdp, nodes)
  updateGraph(rdp)

## End(Not run)  

RedeR documentation built on Nov. 8, 2020, 7:45 p.m.