Online graph learning from sequential data