anyGraph-class            package:giRaph            R Documentation

_C_l_a_s_s "_a_n_y_G_r_a_p_h"

_D_e_s_c_r_i_p_t_i_o_n:

     A class for graphs of any kind.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     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.

_S_l_o_t_s:

     '_i_n_c_i_d_e_n_c_e_L_i_s_t': Object of class '"incidenceList"'

_M_e_t_h_o_d_s:

     _i_n_i_t_i_a_l_i_z_e 'signature(.Object="anyGraph")': constructs any graph
          from incidence list representation

     _s_h_o_w 'signature(object = "anyGraph")': displays the available
          representations of any graph

     _d_i_s_p_l_a_y 'signature(x = "anyGraph")': static graphical
          representation via package 'mathgraph'

     _d_y_n_a_m_i_c._G_r_a_p_h 'signature(object = "anyGraph")': dynamic graphical
          representation via package 'dynamicGraph'

     _i_n_c_i_d_e_n_c_e_L_i_s_t<- 'signature(x = "anyGraph")': sets the incidence
          list representation

     _i_n_c_i_d_e_n_c_e_L_i_s_t 'signature(object = "anyGraph")': gets the incidence
          list representation

     _n_a_m_e_s 'signature(x = "anyGraph")': gets the character vertex
          identifiers of any graph

     _n_a_m_e_s<- 'signature(x = "anyGraph")': sets the character vertex
          identifiers of any graph

     _c_a_r_d 'signature(object = "anyGraph")': returns the number of
          vertices and the total number of edge occurrences in any
          graph

     _i_s_E_m_p_t_y 'signature(object = "anyGraph")': a graph object is empty
          if all its possible representations are empty

     _i_s_P_r_e_s_e_n_t 'signature(el = "edge", ou = "anyGraph")': an edge
          occurs in a graph object if it occurs in its non-empty slots

     _a_r_e_T_h_e_S_a_m_e '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 

     _c_o_e_r_c_e 'signature(from = "generalGraph", to = "anyGraph")': no
          edges are lost in the conversion to the most general class of
          graphs

     _c_o_e_r_c_e 'signature(from = "multiGraph", to = "anyGraph")': no edges
          are lost in the conversion to the most general class of
          graphs

     _c_o_e_r_c_e 'signature(from = "simpleGraph", to = "anyGraph")': no
          edges are lost in the conversion to the most general class of
          graphs

     _c_o_e_r_c_e '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

_N_o_t_e:

     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'.

_A_u_t_h_o_r(_s):

     Jens Henrik Badsberg, Claus Dethlefsen, Luca La Rocca

_S_e_e _A_l_s_o:

     'incidenceList-class' and 'incidenceList'

