Ask Your Question

Revision history [back]

click to hide/show revision 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 ] )

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] )