Added build method for GraphCollection, tests