don't know why this had its own source file.
Examples all work now.

Used bergmark's fromRational workaround, and moved the rand stuff into Graph.