Refine thrift-graph model