I noticed that when importing animated meshes, the total number of bones (aiBone) in the scene might be less than the total number of nodes (aiNode), so my initial thought was "okay their hierarchies are probably not related.. whatever", but then I noticed that an aiBone object doesn't contain a pointer to a parent bone.
So my question is how do I calculate the final matrix palette for the bones, not knowing the hierarchy between them?
Edit: I forgot to mention that according to some book I read every joint (bone) must store an index to its parent joint.