1 | initial version |
This is a straighforward way to contruct the same graph as in John's code:
Graph( [ GF(5), lambda a,b: a^2 == b^2 ] )
2 | No.2 Revision |
This is a straighforward way to contruct the same graph as in John's code:
Graph( [ GF(5), lambda a,b: a^2 == b^2 ] )
Correspondingly, the graph in question can be constructed as
F = lambda X, A, B: X^3 + A*X + B
Graph( [ Tuples(GF(5),2), lambda AB0, AB: AB[0]!=AB0[0] and F(AB[1]-AB0[1],AB[0],AB[1])==0] )