Cleaned up meshToGraph().

No longer need table and nconnect arrays.