Description Usage Arguments Details Value Author(s) Examples
This function can return an igraph object from simulation result for user to work with directly
1 2 3 | ## S3 method for class 'simulation'
returngraph(x, type = "task",
neighbouroption = "task", subID = NULL, index = NULL, ...)
|
x |
output generated from simulatino functino |
type |
type of graph. There are four options:
|
neighbouroption |
determines what type of graph to zoom into when parameter "type" is "neighbour". There are two options:
|
subID |
selects which task to display. There are four options:
|
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) |
... |
not used |
the function aims to provide users the flexibility to explore and visualize the graph on their own generated from simulation
an igraph object of graph / subgraph from simulation result specified by user input
Beilun Wang, Zhaoyang Wang (Author), Zhaoyang Wang (maintainer) zw4dn@virginia.edu
1 2 3 4 | library(JointNets)
data(exampleData)
result = simulation(n=c(100,100,100))$simulatedgraphs
graph = returngraph(result)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.