changes to classes.GraphCollection.build, fixes #39