Changeset 7b12a3 in git for Singular/LIB/fpaprops.lib


Ignore:
Timestamp:
Mar 9, 2018, 1:51:38 PM (6 years ago)
Author:
Karim Abou Zeid <karim23697@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
45fa962b8938643ace5cdc03f189d4457e4c7408
Parents:
9a03c2dc812de8eeadb5ea846b85d1b21c1d247f
Message:
Make lpUfGraph non static
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/fpaprops.lib

    r9a03c2d r7b12a3  
    630630}
    631631
    632 static proc lpUfGraph(ideal G, list #)
    633 "USAGE: lpUfGraph(G); G a set of monomials in a letterplace ring, # an optional parameter to return the vertex list when set
    634 RETURN: intmat
     632proc lpUfGraph(ideal G, list #)
     633"USAGE: lpUfGraph(G); G a set of monomials in a letterplace ring.
     634@*      lpUfGraph(G,1); G a set of monomials in a letterplace ring.
     635RETURN: intmat or list
     636NOTE: lpUfGraph(G); returns intmat. lpUfGraph(G,1); returns list L with L[1] an intmat and L[2] an ideal.
     637      The intmat is the Ufnarovskij Graph and the ideal contains the vertices.
    635638PURPOSE: Constructs the Ufnarovskij graph induced by G
    636639      the adjacency matrix of the Ufnarovskij graph induced by G
     
    669672  if (size(#) > 0) {
    670673    if (typeof(#[1]) == "int") {
    671       if (#[1] == 1) {
     674      if (#[1] != 0) {
    672675        list ret = UG;
    673676        ret[2] = ivL2lpI(SW); // the vertices
     
    677680  }
    678681  return (UG);
     682}
     683example {
     684  "EXAMPLE:"; echo = 2;
     685  ring r = 0,(x,y,z),dp;
     686  def R = makeLetterplaceRing(5); // constructs a Letterplace ring
     687  setring R; // sets basering to Letterplace ring
     688  ideal I = x(1)*y(2), x(1)*z(2), z(1)*y(2), z(1)*z(2);
     689  lpUfGraph(I);
     690  lpUfGraph(I,1);
    679691}
    680692
Note: See TracChangeset for help on using the changeset viewer.