adjamat              package:mathgraph              R Documentation

_A_d_j_a_c_e_n_c_y _M_a_t_r_i_x _o_f _a _M_a_t_h_e_m_a_t_i_c_a_l _G_r_a_p_h

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

     Returns an object of class '"adjamat"' which is the adjacency 
     matrix of a numbered graph.

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

     adjamat(x, ...)
     adjamat.mathgraph(x, general=FALSE, ...)

     is.adjamat(x)

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

       x: an object of class '"mathgraph"'. 

 general: logical flag, if 'TRUE', then multiple edges or  arcs between
          the same nodes are counted; otherwise, there is  a '1' no
          matter how many edges or arcs there are. 

     ...: other arguments for generic function. 

_D_e_t_a_i_l_s:

     'adjamat' is a generic function with a method for  class
     '"mathgraph"'.

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

     An object of class '"adjamat"' which is a square matrix with as
     many  rows and columns as there are nodes in the numbered graph.
      The 'i','j' element is an indicator of an arc from  node 'i' to
     node 'j'. An undirected edge between nodes 'i' and 'j' contributes
      a '1' to both the 'i','j' element and  the 'j','i' element.

     'is.adjamat' is the membership function for this class.

_B_U_G_S:

     The 'general' argument to 'adjamat.mathgraph' is not  functional.

_N_o_t_e:

     S Poetry, Patrick J. Burns, <URL:
     http://www.burns-stat.com/pages/spoetry.html>

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

     Nick Efthymiou

_R_e_f_e_r_e_n_c_e_s:

     Chachra, V., Ghare, P. M. and Moore, J. M. (1979).  Applications
     of Graph Theory Algorithms. Elvesier North Holland, New York.

     Harary, Frank (1969). Graph Theory, p. 158. Addison Wesley.

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

     'mathgraph', 'incidmat',  'getpath.adjamat'

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

     adjamat(mathgraph(~ 1:3 * 3:5, dir=TRUE))

