returnVertexList        package:dynamicGraph        R Documentation

_C_l_a_s_s "_d_g._V_e_r_t_e_x_L_i_s_t": _T_h_e _v_e_r_t_e_x _l_i_s_t

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

     Return a list of vertices of classes containing the class
     'dg.Vertex'.

     Objects can be created by calls of the form 'new("dg.VertexList",
     ...)'.

_U_s_a_g_e:

     returnVertexList(names, labels = NULL, types = NULL, 
                      strata = NULL, line = FALSE, N = 3, 
                      colors = ifelse(types == "TextVertex", 
                                      "FloralWhite", "DarkRed"), 
                      vertexClasses = validVertexClasses())

_A_r_g_u_m_e_n_t_s:

   names: Vector of text strings with the 'names' of the vertices. 

  labels: Vector of text strings with the 'labels' of the vertices. 

   types: Vector of text strings with the 'types' of the vertices. 

  strata: Vector of integers with the 'strata' of the vertices. 

    line: Logical, if TRUE then the vertices are positioned on a
          'line', else in a regular polygone, in a circle. 

       N: Integer, 'N' is the number of coordinates of the vertices. 

  colors: Vector of text strings with 'colors' of the vertices. 

vertexClasses: The valid 'vertexClasses'. 

_V_a_l_u_e:

     A list of vertices of classes containing the class 'dg.Vertex'.

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

     '._D_a_t_a': Object of class '"list"'. 

_E_x_t_e_n_d_s:

     Class '"dg.NodeList"', directly. Class '"dg.list"', directly.
     Class '"list"', from data part. Class '"vector"', by class
     '"dg.NodeList"'. Class '"vector"', by class '"dg.list"'. Class
     '"vector"', by class '"list"'.

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

     _i_n_i_t_i_a_l_i_z_e 'signature(.Object = "dg.VertexList")': ... 

_N_o_t_e:

     The methods 'Names',  'Names<-',  'Colors',  'Colors<-', 
     'Labels',  'Labels<-',  'LabelPositions',  'LabelPositions<-', 
     'Positions',  'Positions<-',  'Strata',  'Strata<-', 'Indices',
     and  'asDataFrame'  are available for vertex lists.

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

     Jens Henrik Badsberg

_E_x_a_m_p_l_e_s:

     vertices <- returnVertexList(c("A", "B", "C", "D"),
                                  labels = c("OrdinalVertex", "TextVertex", 
                                    "ContinuousVertex", "DiscreteVertex"), 
                                  types = c("Ordinal", "TextVertex",
                                            "Continuous", "Discrete"), N = 2)

     vertices <- new("dg.VertexList", names = c("A", "B", "C", "D"),
                                  labels = c("OrdinalVertex", "TextVertex", 
                                    "ContinuousVertex", "DiscreteVertex"), 
                                  types = c("Ordinal", "TextVertex",
                                            "Continuous", "Discrete"), N = 2)
     Names(vertices)
     Colors(vertices)
     Labels(vertices)
     LabelPositions(vertices)
     Positions(vertices)
     Strata(vertices)
     Indices(vertices)
     Names(vertices) <- c("a", "b", "c", "d")
     Colors(vertices) <- rep("Blue", 4)
     Labels(vertices) <- c("A", "B", "C", "D")
     LabelPositions(vertices) <- matrix(rep(0, 12), ncol = 3)
     Positions(vertices) <- matrix(rep(0, 12), ncol = 3)
     Strata(vertices) <- rep(1, 4)
     Names(vertices)
     Colors(vertices)
     Labels(vertices)
     LabelPositions(vertices)
     Positions(vertices)
     Strata(vertices)
     Indices(vertices)
     asDataFrame(vertices)

