Text this: An algebraic framework of weighted directed graphs