63.9 AssignVertexNames

AssignVertexNames( gamma, names )

This function allows the user to give new names to the vertices of gamma, by specifying a list names of vertex names for the vertices of gamma, such that <names>[i] contains the user's name for the i-th vertex of gamma.

A copy of names is assigned to gamma.names. See also VertexName.

    gap> gamma := NullGraph( Group(()), 3 );
    rec(
      isGraph := true,
      order := 3,
      group := Group( () ),
      schreierVector := [ -1, -2, -3 ],
      adjacencies := [ [  ], [  ], [  ] ],
      representatives := [ 1, 2, 3 ],
      isSimple := true )
    gap> AssignVertexNames( gamma, ["a","b","c"] );
    gap> gamma;
    rec(
      isGraph := true,
      order := 3,
      group := Group( () ),
      schreierVector := [ -1, -2, -3 ],
      adjacencies := [ [  ], [  ], [  ] ],
      representatives := [ 1, 2, 3 ],
      isSimple := true,
      names := [ "a", "b", "c" ] ) 

Previous Up Top Next
Index

GAP 3.4.4
April 1997