Added utility functions for concatenating graphs and nodes.