[MRG] add fill_graph