I suspect that this is kind of problem where it is easier to find some available bike with round wheels rather than invent your own with rectangular ones

If you take something like Goblin, probably you'd get most of the code you need. You can also look at
http://www.kurnikov.org/links/math_links.htm in the Graph Theory section. Or just google
