Yes, but if we want just to convert graphs, it may not be the most memory efficient option (as we read all the edges to a map).