Graph theoretical view on text understanding