VX(Li): Refactor the graphs so they derive from IGraph interface.