@@ -731,6 +731,7 @@ get.edge.value.list <- get.edge.value.network
731731# ' @param na.omit logical; should we omit missing edges?
732732# ' @param tails a vector of vertex ID for the 'tails' (v) side of the dyad
733733# ' @param heads a vector of vertex ID for the 'heads' (alter) side of the dyad
734+ # ' @param ... additional arguments to methods
734735# ' @return For \code{get.edges}, a list of edges. For \code{get.edgeIDs}, a
735736# ' vector of edge ID numbers. For \code{get.dyads.eids}, a list of edge IDs
736737# ' corresponding to the dyads defined by the vertex ids in \code{tails} and
@@ -752,7 +753,11 @@ get.edge.value.list <- get.edge.value.network
752753# ' get.edgeIDs(g,1,neighborhood="in")
753754# '
754755# ' @export get.edgeIDs
755- get.edgeIDs <- function (x , v , alter = NULL , neighborhood = c(" out" ," in" ," combined" ), na.omit = TRUE ){
756+ get.edgeIDs <- function (x , v , alter = NULL , neighborhood = c(" out" ," in" ," combined" ), na.omit = TRUE , ... ) UseMethod(" get.edgeIDs" )
757+
758+ # ' @rdname get.edges
759+ # ' @export
760+ get.edgeIDs.network <- function (x , v , alter = NULL , neighborhood = c(" out" ," in" ," combined" ), na.omit = TRUE , ... ){
756761 # Check to be sure we were called with a network
757762 if (! is.network(x ))
758763 stop(" get.edgeIDs requires an argument of class network." )
@@ -780,7 +785,11 @@ get.edgeIDs<-function(x, v, alter=NULL, neighborhood=c("out","in","combined"), n
780785
781786# ' @rdname get.edges
782787# ' @export get.edges
783- get.edges <- function (x , v , alter = NULL , neighborhood = c(" out" ," in" ," combined" ), na.omit = TRUE ){
788+ get.edges <- function (x , v , alter = NULL , neighborhood = c(" out" ," in" ," combined" ), na.omit = TRUE , ... ) UseMethod(" get.edges" )
789+
790+ # ' @rdname get.edges
791+ # ' @export
792+ get.edges.network <- function (x , v , alter = NULL , neighborhood = c(" out" ," in" ," combined" ), na.omit = TRUE , ... ){
784793 # Check to be sure we were called with a network
785794 if (! is.network(x ))
786795 stop(" get.edges requires an argument of class network." )
@@ -803,7 +812,11 @@ get.edges<-function(x, v, alter=NULL, neighborhood=c("out","in","combined"), na.
803812# as defined by a vector of tails and heads vertex ids
804813# ' @rdname get.edges
805814# ' @export get.dyads.eids
806- get.dyads.eids <- function (x ,tails ,heads ,neighborhood = c(" out" , " in" , " combined" ),na.omit = TRUE ){
815+ get.dyads.eids <- function (x , tails , heads , neighborhood = c(" out" , " in" , " combined" ), na.omit = TRUE , ... ) UseMethod(" get.dyad.eids" )
816+
817+ # ' @rdname get.edges
818+ # ' @export
819+ get.dyads.eids <- function (x , tails , heads , neighborhood = c(" out" , " in" , " combined" ), na.omit = TRUE , ... ){
807820 if (length(tails )!= length(heads )){
808821 stop(' heads and tails vectors must be the same length for get.dyads.eids' )
809822 }
@@ -907,7 +920,7 @@ get.dyads.eids<-function(x,tails,heads,neighborhood = c("out", "in", "combined")
907920# '
908921# '
909922# ' @export get.inducedSubgraph
910- get.inducedSubgraph <- function (x , ... ) UseMethod(" get.inducedSubgraph" )
923+ get.inducedSubgraph <- function (x , v , alters = NULL , ... ) UseMethod(" get.inducedSubgraph" )
911924
912925# ' @rdname get.inducedSubgraph
913926# ' @export
@@ -1024,6 +1037,7 @@ get.network.attribute.network <- function(x, attrname, unlist=FALSE, ...) {
10241037# ' @param type the neighborhood to be computed
10251038# ' @param na.omit logical; should missing edges be ignored when obtaining
10261039# ' vertex neighborhoods?
1040+ # ' @param ... additional arguments to methods
10271041# ' @return A vector containing the vertex IDs for the chosen neighborhood.
10281042# ' @author Carter T. Butts \email{buttsc@@uci.edu}
10291043# ' @seealso \code{\link{get.edges}}, \code{\link{is.adjacent}}
@@ -1047,7 +1061,11 @@ get.network.attribute.network <- function(x, attrname, unlist=FALSE, ...) {
10471061# ' get.neighborhood(g,1,"combined")
10481062# '
10491063# ' @export get.neighborhood
1050- get.neighborhood <- function (x , v , type = c(" out" ," in" ," combined" ), na.omit = TRUE ){
1064+ get.neighborhood <- function (x , v , type = c(" out" ," in" ," combined" ), na.omit = TRUE , ... ) UseMethod(" get.neighborhood" )
1065+
1066+ # ' @rdname get.neighborhood
1067+ # ' @export
1068+ get.neighborhood.network <- function (x , v , type = c(" out" ," in" ," combined" ), na.omit = TRUE , ... ){
10511069 # Check to be sure we were called with a network
10521070 if (! is.network(x ))
10531071 stop(" get.neighborhood requires an argument of class network." )
@@ -1217,6 +1235,7 @@ has.loops<-function(x){
12171235# ' @param vj a second vertex ID
12181236# ' @param na.omit logical; should missing edges be ignored when assessing
12191237# ' adjacency?
1238+ # ' @param ... additional arguments to methods
12201239# ' @return A logical, giving the status of the (i,j) edge
12211240# ' @note Prior to version 1.4, \code{na.omit} was set to \code{TRUE} by
12221241# ' default.
@@ -1241,7 +1260,11 @@ has.loops<-function(x){
12411260# ' g[2,1]==1 #FALSE
12421261# '
12431262# ' @export is.adjacent
1244- is.adjacent <- function (x ,vi ,vj ,na.omit = FALSE ){
1263+ is.adjacent <- function (x , vi , vj , na.omit = FALSE , ... ) UseMethod(" is.adjacent" )
1264+
1265+ # ' @rdname is.adjacent
1266+ # ' @export
1267+ is.adjacent.network <- function (x , vi , vj , na.omit = FALSE , ... ){
12451268 if (! is.network(x ))
12461269 stop(" is.adjacent requires an argument of class network.\n " )
12471270 if (length(vi )!= length(vj )){
0 commit comments