Skip to content

Commit ad03592

Browse files
committed
corrected argument shuffling
1 parent cd92b69 commit ad03592

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

R/access.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,8 @@ get.change.times <- function (x, vertex.activity=TRUE,edge.activity=TRUE, ignore
471471

472472

473473
#Variant of get.edgeIDs with dynamic query support
474-
get.edgeIDs.active<-function(x,v,alter=NULL,neighborhood=c("out", "in", "combined"),
475-
rule=c("any","all","earliest","latest"),na.omit=TRUE,
476-
onset=NULL,terminus=NULL,length=NULL, at=NULL,
474+
get.edgeIDs.active<-function(x,v,alter=NULL,neighborhood=c("out", "in", "combined"),na.omit=TRUE,
475+
onset=NULL,terminus=NULL,length=NULL, at=NULL,rule=c("any","all","earliest","latest"),
477476
active.default=TRUE,...){
478477

479478
if(missing(v)){
@@ -494,9 +493,9 @@ get.edgeIDs.active<-function(x,v,alter=NULL,neighborhood=c("out", "in", "combine
494493

495494
#Variant of get.edges with dynamic query support. (Note: not safe in the long
496495
#run...)
497-
get.edges.active<-function(x,v,alter=NULL,neighborhood=c("out", "in", "combined"),
496+
get.edges.active<-function(x,v,alter=NULL,neighborhood=c("out", "in", "combined"),na.omit=TRUE,
498497
onset=NULL,terminus=NULL,length=NULL, at=NULL,
499-
rule=c("any","all","earliest","latest"),na.omit=TRUE,active.default=TRUE,...){
498+
rule=c("any","all","earliest","latest"),active.default=TRUE,...){
500499
if(missing(v)){
501500
stop("'v' parameter must be specified with vertex id to indicate which vertex to search for incident edges")
502501
}
@@ -514,8 +513,9 @@ get.edges.active<-function(x,v,alter=NULL,neighborhood=c("out", "in", "combined"
514513

515514

516515
#Variant of get.neighborhood with dynamic query support. Slow, most likely.
517-
get.neighborhood.active<-function(x,v, type=c("out", "in", "combined"),rule=c("any","all","earliest","latest"),
518-
na.omit=TRUE,onset=NULL,terminus=NULL,length=NULL, at=NULL,active.default=TRUE,...){
516+
get.neighborhood.active<-function(x,v, type=c("out", "in", "combined"),
517+
na.omit=TRUE,onset=NULL,terminus=NULL,length=NULL, at=NULL,
518+
rule=c("any","all","earliest","latest"),active.default=TRUE,...){
519519
rule<-match.arg(rule)
520520
# get active edges and assemble neighborhood in questions
521521
if(!is.directed(x)){

man/network.extensions.Rd

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
}
2525
\usage{
2626
\method{get.edgeIDs}{active}(x, v, alter = NULL, neighborhood = c("out", "in",
27-
"combined"), rule = c("any", "all", "earliest",
28-
"latest"), na.omit = TRUE, onset = NULL, terminus =
29-
NULL, length = NULL, at = NULL, active.default = TRUE, ...)
27+
"combined"), na.omit = TRUE, onset = NULL, terminus =
28+
NULL, length = NULL, at = NULL, rule = c("any", "all",
29+
"earliest", "latest"), active.default = TRUE, ...)
3030
\method{get.edges}{active}(x, v, alter = NULL, neighborhood = c("out", "in",
31-
"combined"), onset = NULL, terminus = NULL, length =
32-
NULL, at = NULL, rule = c("any", "all", "earliest",
33-
"latest"), na.omit = TRUE, active.default = TRUE, ...)
34-
\method{get.neighborhood}{active}(x, v, type = c("out", "in", "combined"), rule =
35-
c("any", "all", "earliest", "latest"), na.omit = TRUE,
36-
onset = NULL, terminus = NULL, length = NULL, at =
37-
NULL, active.default = TRUE, ...)
31+
"combined"), na.omit = TRUE, onset = NULL, terminus =
32+
NULL, length = NULL, at = NULL, rule = c("any", "all",
33+
"earliest", "latest"), active.default = TRUE, ...)
34+
\method{get.neighborhood}{active}(x, v, type = c("out", "in", "combined"), na.omit =
35+
TRUE, onset = NULL, terminus = NULL, length = NULL, at
36+
= NULL, rule = c("any", "all", "earliest", "latest"),
37+
active.default = TRUE, ...)
3838

3939
\method{is.adjacent}{active}(x, vi, vj, na.omit = FALSE, onset = NULL, terminus =
4040
NULL, length = NULL, at = NULL, rule = c("any", "all",

0 commit comments

Comments
 (0)