The various levels of subgraph are now such that the root is differently coloured. Need to create a formula for the rgb value so that it is scaleable so that every level has a different colour.