added test (#37)
implemented caching of available graphs (#37)