Mediafile tagging with graphs