cdc.graphs.impl.BasicSuperLightGraph Maven / Gradle / Ivy
package cdc.graphs.impl;
public class BasicSuperLightGraph extends BasicLightGraph> {
public BasicSuperLightGraph(boolean sorted,
CollectionKind collectionKind) {
super(sorted, collectionKind);
}
public BasicSuperLightGraph() {
super();
}
public BasicGraphEdge addEdge(N source,
N target) {
final BasicGraphEdge edge = new BasicGraphEdge<>(source, target);
addEdge(edge);
return edge;
}
public void addEdgeIfMissing(N source,
N target) {
if (!hasEdge(source, target)) {
addEdge(source, target);
}
}
}