This is an animation of the first 29 complete graphs (except 1 and 2) drawn using examples 2-29 in the Python source code.

The Line Patterns Python Module

The line pattern module was developed mainly as a test for the line drawing algorithm. The module comes with an example function that draws patterns like these below.

Eaxmples 1-50 draw what are known as complete graphs (the graph obtained by joining every point in a set to every other point). You can read more about these at Wolfram Research's Mathworld. The first image below is the complete graph for 10.

Passing a tuple such as (11,4) to the 'example' method will draw a star. The second image is the (11,4) star, it has eleven points with the edges joining every 4th point.

The third and fourth images are examples 100 and 100 respectively third and fourth images are generated by superimposing sets of stars and show the sets based on (5,2) and (7,1), with varying phases and sizes.

The source for these patterns can be downloaded from the source code page.

Other pages


(c) John Whitehouse 2010 - 2017