How do i create a breadcrumb based on Main Navigation Menu in programatically? I want to display the breadcrumb according to the main navigation menu.

If i've a menu structure like 
a->b
&nbsp; ->c
&nbsp; ->d
e->f
&nbsp;&nbsp;->g
Now if i go to menu a->c, now the breadcrumb shows Home > c but i want it as like a >bHow to do it programatically ?
Menu breadcrumb module create breadcrumb based on a menu. Maybe this could help.