port graph generation to new backend