| spmgraph-class {mixer} | R Documentation |
A class capable of reading files in "spm" format into graph-like objects
Objects can be created by calls of the form new("spmgraph", initialdata,...).
name:"character" containing the filename the data was read from.edgesrcs:"numeric" vector of indices representing edge sources.edgedests:"numeric" vector of indices representing edge destinations.nodenames:"character" vector of "strings" associating indices to symbolic node names.nodeindexes:"numeric" signature(withlabels=FALSE): returns the edges of the graph as a two-line matrix.signature(withlabels=FALSE): returns the adjacency matrix of the graph.Mark Hoebeke <Mark.Hoebeke@jouy.inra.fr>
showClass("spmgraph")
macaque<-new("spmgraph",file.path(.path.package("mixer"),"spm","macaque_matrix.spm"))
str(macaque)
x<-getAdjacencyMatrix(macaque)