<commit_before>package com.ralitski.util.math.graph;

public class Edge {
	
	private Node source;
	private Node dest;
	
	private Metadata data;

	public Edge(WebNode source, Node dest) {
		this(source, dest, null);
	}

	public Edge(WebNode source, Node dest, Metadata data) {
		this.source = source;
		this.dest = dest;
		this.data = data;
	}

	public Node getStart() {
		return source;
	}

	public Node getEnd() {
		return dest;
	}<commit_msg>Update Edge.java<commit_after>package com.ralitski.util.math.graph;

public class Edge {
	
	public static float distance(Node start, Node end) {
		return start.getLocation().distance(end.getLocation());
	}
	
	private Node source;
	private Node dest;
	
	private Metadata data;

	public Edge(WebNode source, Node dest) {
		this(source, dest, null);
	}

	public Edge(WebNode source, Node dest, Metadata data) {
		this.source = source;
		this.dest = dest;
		this.data = data;
	}

	public Node getStart() {
		return source;
	}

	public Node getEnd() {
		return dest;
	}
{'fraction_non_alphanumeric': 0.10912698412698413, 'fraction_numerical': 0.0, 'mean_word_length': 3.7370892018779345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1777453', 'n_tokens_mistral': 363, 'n_tokens_neox': 330, 'n_words': 100}