permute.vertexIDs {network} | R Documentation |
permute.vertexIDs
permutes the vertices within a given network in the specified fashion. Since this occurs internally (at the level of vertex IDs), it is rarely of interest to end-users.
permute.vertexIDs(x, vids)
x |
an object of class network . |
vids |
a vector of vertex IDs, in the order to which they are to be permuted. |
permute.vertexIDs
alters the internal ordering of vertices within a network
. For most practical applications, this should not be necessary – de facto permutation can be accomplished by altering the appropriate vertex attributes. permute.vertexIDs
is needed for certain other routines (such as delete.vertices
), where it is used in various arcane and ineffable ways.
The permuted network.
Carter T. Butts buttsc@uci.edu
Wasserman, S. and Faust, K. (1994). Social Network Analysis: Methods and Applications. Cambridge: Cambridge University Press.
data(flo) #Load the Florentine Families data nflo<-network(flo) #Create a network object n<-network.size(nflo) #Get the number of vertices nflo<-permute.vertexIDs(nflo,n:1) #Reverse the vertices all(flo[n:1,n:1]==as.sociomatrix(nflo)) #Should be TRUE