spmgraph-class {mixer}R Documentation

Class "spmgraph"

Description

A class capable of reading files in "spm" format into graph-like objects

Objects from the Class

Objects can be created by calls of the form new("spmgraph", initialdata,...).

Slots

name:
Object of class "character" containing the filename the data was read from.
edgesrcs:
Object of class "numeric" vector of indices representing edge sources.
edgedests:
Object of class "numeric" vector of indices representing edge destinations.
nodenames:
Object of class "character" vector of "strings" associating indices to symbolic node names.
nodeindexes:
Object of class "numeric"

Methods

getEdges
signature(withlabels=FALSE): returns the edges of the graph as a two-line matrix.
getAdjacencyMatrix
signature(withlabels=FALSE): returns the adjacency matrix of the graph.

Author(s)

Mark Hoebeke <Mark.Hoebeke@jouy.inra.fr>

Examples

showClass("spmgraph")

macaque<-new("spmgraph",file.path(.path.package("mixer"),"spm","macaque_matrix.spm"))
str(macaque)
x<-getAdjacencyMatrix(macaque)

[Package mixer version 0.2 Index]