Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //constant final variables
- public static final String PAGES_FILE = "pages.txt";
- public static final String LINKS_FILE = "links.txt";
- // webgraph object var
- private WebGraph web;
- // searchEngine constructor.
- public SearchEngine() throws FileNotFoundException {
- web = WebGraph.buildFromFiles(PAGES_FILE, LINKS_FILE);
- }
- try {
- System.out.println("Loading WebGraph data...");
- SearchEngine engine = new SearchEngine();
- System.out.println("Success!");
- Scanner scanner = new Scanner(System.in);
Add Comment
Please, Sign In to add comment