Format independent graph parsing