pes10k/PESGraph

PESGraphNode - additionalData property

Closed this issue · 3 comments

Store some info into additionalData property and then try to find PESGraphRoute.
I try to store this additionalData into an array, but I see that the last object is always nil.

Or does it belong to node, but stores an info about edge?

Hi gerchicov,

The additionalData property is attached to a node and is meant to be a convenience for certain uses of the graph (ex addresses if describing spots on a map, etc.). I'm not sure I understand the problem you're having though. You're seeing the property be nil, or your trying to store the additionalData NSMutableDictionary in some other structure too and thats winding up nil?

If the latter, it sounds like an issue not related to the library, and more likely in the other code. If the former, I'm confused and not sure what could cause it. Maybe a code example would help?

I have NSManagedObject s from db and I want to store them in additional data. Of course I use another structure because this way doesn't work.
And I still think that it is a library bug because all the additionalData objects are stored correctly except of the last one

I'm sorry but I'm still not quite understanding the problem or how it could be a library issue (the additionalData parameter is created identically in all instances). If you're still seeing problems, maybe you could post a small, representative code snippit showing the problem?