Text this: Graph-based structural analysis of planar mechanisms.