Any suggestion on how to most accurately predict "Retweet Path or Retweet Tree"


Hi all Twitter Developers,

I would like to write a program to predict a retweet path and build a retweet tree. FYI, the current Twitter API doesn’t provide this functionality.
For example, if there are 3 users: A, B, and C.

A tweets X
B retweet X.
C saw the retweet from B and retweeted X.

From this information, the retweet tree/path would be A->B->C.
The problem is that the current twitter API can’t tell us this.

If anyone has seen or has written a program to construct this tree. Please let me know. Thank you guys.