How reference Actor at least memory cost?

I’m trying to implement the A* approach into my road system at the least memory cost. What I’m referring to is the reference to the Actors that are the junction. In other words I have an array full of hard references to each of the Actors, which is taking using more memory than I’d like.