Make graph type queries functions

Got burned by a typo in one of my queries that took longer than it
should have to track down. If these had been functions the error would
have been obvious.
No longer expose properties directly as part of the API

See previous commit message for details.