Learn R Programming

JointNets (version 2.0.1)

returngraph.diffee: return igraph object from diffee result specified by user input

Description

This function can return an igraph object from diffee result for user to work with directly

Usage

# S3 method for diffee
returngraph(x, type = "task",
  neighbouroption = "task", subID = NULL, index = NULL, ...)

Arguments

x

output generated from diffee function (diffee class)

type

type of graph. There are two options:

  • "task" (difference graph)

  • "neighbour" (zoom into nodes in the difference graph specified further by parameter "index" (node id)

neighbouroption

unused

subID

unused

index

determines which node(s) to zoom into when parameter "type" is "neighbour". This parameter could either be an integer or vector of integers representing node ids (zoom into one node or multiple nodes)

...

unused

Value

an igraph object of graph / subgraph from diffee result specified by user input

Details

the function aims to provide users the flexibility to explore and visualize the graph own their own generated from diffee

Examples

Run this code
# NOT RUN {
library(JointNets)
data(exampleData)
result = diffee(exampleData[[1]], exampleData[[2]], 0.45)
graph = returngraph(result)
# }

Run the code above in your browser using DataLab