a->b weight=5
b->c weight=3
