Dynamic representation of graphs