Added preliminary implementation and tests for hbgraph.