Support graphs in pairs format