
com.harium.etyl.linear.graph.GenericEdge Maven / Gradle / Ivy
package com.harium.etyl.linear.graph;
public class GenericEdge {
protected Node origin;
protected Node destination;
public GenericEdge(Node origin, Node destination) {
super();
setOrigin(origin);
setDestination(destination);
}
public Node getOrigin() {
return origin;
}
public void setOrigin(Node origin) {
this.origin = origin;
}
public Node getDestination() {
return destination;
}
public void setDestination(Node destination) {
this.destination = destination;
if(destination == destination.getParent()) {
destination.setParent(origin);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy