A polariton graph simulator