Separate graph implementations by its data structure