electrograph.exam {ElectroGraph}R Documentation

electrograph.exam

Description

Compute a full analysis of electro-social properties of the system

Usage

electrograph.exam(e.graph, sample.edges=FALSE, sample.per=NULL)

Arguments

e.graph An object initialized by the electrograph() function.
sample.edges If TRUE, samples of edges are taken as opposed to the full set.
sample.per Sets the number of samples taken if sample.edges is TRUE. Defaults to the square root of the number of edges.

Value

The original electrograph object, augmented with electro-social quantities:

distance.mat The equivalent electro-social resistances for each pair of nodes in matrix form; if sample.edges is TRUE, edge importance is approximated.
conductances A vector of electro-social conductances for each specified pair of nodes.
voltages A matrix with each column representing the voltages at each node.
currents.node A matrix with each column representing the current through each node.
source.sink The source-sink vectors used in the examination.
current.matrix The average current through each directed edge.

Note

This is currently performed automatically when the constructor function ``electrograph'' is called, but can be executed manually as well.

Author(s)

Andrew C. Thomas <act@acthomas.ca>

Examples

latt <- cbind(rep(1:5,5),sort(rep(1:5,5)))
latt.e <- electrograph (make.sociomatrix.from.lattice(latt)$sociomatrix, ohmic=FALSE)
latt.exam <- electrograph.exam(latt.e)

[Package ElectroGraph version 0.2.0 Index]