smallish parser for HGraph