Diversity and coding gain evolution in graph codes