incidenceMatrix-class {giRaph} | R Documentation |
A class for incidence matrix representation of general graphs
Objects can be created by calls of the form new("incidenceMatrix", I)
.
.Data
:"matrix"
; a column for each vertex and a row for each edge
Class "matrix"
, from data part.
Class "structure"
, by class "matrix"
.
Class "array"
, by class "matrix"
.
Class "vector"
, by class "matrix", with explicit coerce.
signature(.Object = "incidenceMatrix")
:
constructs an incidence matrix representation of a general graph from a matrix of positive integerssignature(object = "incidenceMatrix")
: an incidence matrix is empty if it has no columnssignature(x = "incidenceMatrix", y = "incidenceMatrix")
:
x and y are the same incidence matrix if they represent the same general graphsignature(from = "incidenceList", to = "incidenceMatrix")
:
converts an incidence list to an incidence matrix by dropping all but undirected and directed edgessignature(from = "adjacencyList", to = "incidenceMatrix")
:
converts an adjacency list to an incidence matrixsignature(from = "adjacencyMatrix", to = "incidenceMatrix")
:
converts and adjacency matrix to an incidence matrixsignature(x = "incidenceMatrix")
: gets the character vertex identifiers of an incidence matrixsignature(e1 = "incidenceMatrix", e2 = "vertexSet")
:
adds a vertex set to an incidence matrix by making the new vertices isolatedsignature(e1 = "incidenceMatrix", e2 = "vertexSet")
:
removes a vertex set from an incidence matrix by dropping all edges involving the vertex setsignature(e1 = "incidenceMatrix", e2 = "undirectedEdge")
: adds an undirected edge to an incidence matrixsignature(e1 = "incidenceMatrix", e2 = "undirectedEdge")
:
removes an undirected edge from an incidence matrixsignature(e1 = "incidenceMatrix", e2 = "directedEdge")
: adds a directed edge to an incidence matrixsignature(e1 = "incidenceMatrix", e2 = "directedEdge")
:
removes a directed edge from an incidence matrixAll zero input rows are discarded by the constructor.
Jens Henrik Badsberg, Claus Dethlefsen, Luca La Rocca
incidenceMatrix
and generalGraph-class