Graph implementation for Cascalog