Simple graphs example.
mods to basic examples