<commit_before>package no.uis.ux.cipsi.net.monitoringbalancing.app.algorithm;

import mulavito.algorithms.shortestpath.ksp.Yen;

import org.apache.commons.collections15.Transformer;

import edu.uci.ics.jung.graph.Graph;

public class YenNoCache<V, E> extends Yen<V, E>{

    public YenNoCache(Graph<V, E> graph,
            Transformer<E, Number> nev) {
        super(graph, nev);
        dijkstra.enableCaching(false);
        dijkstra.setMaxTargets(8);
        //        dijkstra.setMaxDistance(8);
    }

}<commit_msg>add a helper method to get the graph from the provided algorithm<commit_after>package no.uis.ux.cipsi.net.monitoringbalancing.app.algorithm;

import mulavito.algorithms.shortestpath.ksp.Yen;

import org.apache.commons.collections15.Transformer;

import edu.uci.ics.jung.graph.Graph;

public class YenNoCache<V, E> extends Yen<V, E>{

    public YenNoCache(Graph<V, E> graph,
            Transformer<E, Number> nev) {
        super(graph, nev);
        dijkstra.enableCaching(false);
//        dijkstra.setMaxTargets(8);
        dijkstra.setMaxDistance(8);
    }
    
    public Graph<V,E> getGraph() {
    	return graph;
	}
    
}
{'fraction_non_alphanumeric': 0.11815812337098175, 'fraction_numerical': 0.0069504778453518675, 'mean_word_length': 3.2666666666666666, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6964780', 'n_tokens_mistral': 416, 'n_tokens_neox': 410, 'n_words': 70}