Using Relevance to Reduce Network Size Automatically