You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example of flowchart using mermaid (You don't need to use this, draw.io also has this)
flowchart LR
is_seedpnodes_list{Is seed p nodes list} -->|Yes| B
is_seedpnodes_list -->|No| C
Loading
The ideal function should have:
Allow passing a list for some of the arguments, in which case it assumes a multi-behavior model.
Arguments are are not passed as list, should be recycled, e.g., if seed.p.nodes is a list but seed.nodes as a vector (indicating seed vertices), then the program should do something like seed.nodes <- list(seed.nodes, seed.nodes)
Need to think about the sim process.
For the preprocessing, you could have something like this:
rdiffnet_validate_args<-function(seed.p.nodes, seed.nodes, behavior) {
...doallthecheckstovalidatelengthandstuff...list(
seed.p.nodes=...,
seed.nodes=...,
behavior=...,
num_of_behaviors=...
)
}
rdiffnet<-function( ... ) {
validated_args<- rdiffnet_validate_args(seed.p.nodes, seed.nodes, behavior)
....# if you want to use seed.p.nodesvalidated_args$seed.p.nodes
}
Example of flowchart using mermaid (You don't need to use this, draw.io also has this)
flowchart LR is_seedpnodes_list{Is seed p nodes list} -->|Yes| B is_seedpnodes_list -->|No| CThe ideal function should have:
seed.p.nodesis a list butseed.nodesas a vector (indicating seed vertices), then the program should do something likeseed.nodes <- list(seed.nodes, seed.nodes)Need to think about the sim process.
For the preprocessing, you could have something like this: