Description Objects from the Class Slots Methods Note Author(s) See Also
A class for graphs of any kind.
Objects can be created by calls of the form new("anyGraph", ...)
.
An anyGraph
object consists of a single slot (incidenceList
)
for the only possible representation.
incidenceList
:Object of class "incidenceList"
signature(.Object="anyGraph")
:
constructs any graph from incidence list representation
signature(object = "anyGraph")
: displays the available representations of any graph
signature(x = "anyGraph")
: static graphical representation via package 'mathgraph'
signature(object = "anyGraph")
:
dynamic graphical representation via package 'dynamicGraph'
signature(x = "anyGraph")
: sets the incidence list representation
signature(object = "anyGraph")
: gets the incidence list representation
signature(x = "anyGraph")
: gets the character vertex identifiers of any graph
signature(x = "anyGraph")
: sets the character vertex identifiers of any graph
signature(object = "anyGraph")
:
returns the number of vertices and the total number of edge occurrences in any graph
signature(object = "anyGraph")
:
a graph object is empty if all its possible representations are empty
signature(el = "edge", ou = "anyGraph")
:
an edge occurs in a graph object if it occurs in its non-empty slots
signature(x = "anyGraph", y = "anyGraph")
:
x and y are the same if their non-empty slots represent the same graph
signature(x = "anyGraph")
: extracts an induced subgraph
signature(x = "anyGraph")
: extracts the character identifier of a vertex
signature(from = "generalGraph", to = "anyGraph")
:
no edges are lost in the conversion to the most general class of graphs
signature(from = "multiGraph", to = "anyGraph")
:
no edges are lost in the conversion to the most general class of graphs
signature(from = "simpleGraph", to = "anyGraph")
:
no edges are lost in the conversion to the most general class of graphs
signature(from = "anyGraph", to = "dg.graph")
:
conversion to class 'dg.graph' of package 'dynamicGraph'
signature(e1 = "anyGraph", e2 = "vertexSet")
:
adds a vertex set to any graph by making the new vertices isolated
signature(e1 = "anyGraph", e2 = "vertexSet")
:
removes a vertex set from any graph by dropping all edges involving the vertex set
signature(e1 = "anyGraph", e2 = "edge")
:
adds an edge to any graph
signature(e1 = "anyGraph", e2 = "edge")
:
removes an edge from any graph
signature(e1 = "anyGraph", e2 = "vertexSet")
:
restricts any graph to a vertex set by dropping all edges involving vertices outside the vertex set
Graphical representation via package 'dynamicGraph' is based on coercion to class dg.graph
.
Coercion to class dg.graph
is implemented via coercion to class generalGraph
. Graphical
representation via package 'mathgraph' is obtained by means of coercion to class simpleGraph
.
Jens Henrik Badsberg, Claus Dethlefsen, Luca La Rocca
incidenceList-class
and incidenceList
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.