using types and functions from latest prodash.  wip on building new Graph type