Learn R Programming

giRaph (version 0.1.2)

incidenceMatrix: Incidence matrix representation of a graph

Description

Retrieve or set the incidence matrix representation of a graph

Usage

incidenceMatrix(object, ...) incidenceMatrix(x, force = TRUE)<- value

Arguments

object
a graph object from which the representation should be retrieved
...
additional parameters to be used when retrieving the representation
x
a graph object in which the representation should be set
force
a logical value telling whether the representation should be set even if this amounts to changing the graph
value
an object of class "incidenceMatrix" containing the representation to be set

Value

incidenceMatrix returns an object of class "incidenceMatrix" containing the incidence matrix representation to be retrieved. The function incidenceMatrix<- returns a graph object in which the incidence matrix representation has been set.

Details

The functions incidenceMatrix and incidenceMatrix<- are generic.

See Also

incidenceMatrix-class and generalGraph-class