-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
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
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.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:
rdiffnet_validate_args <- function(seed.p.nodes, seed.nodes, behavior) {
... do all the checks to validate length and stuff ...
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.nodes
validated_args$seed.p.nodes
}Metadata
Metadata
Assignees
Labels
No labels