adds some labelgraph api