cdc.graphs.impl.BasicGraphHeavyNode Maven / Gradle / Ivy
package cdc.graphs.impl;
import java.util.ArrayList;
import java.util.List;
import cdc.graphs.GraphHeavyNode;
/**
* Default implementation of {@link GraphHeavyNode}.
*
* @author Damien Carbonne
*
* @param The edge type.
*/
public class BasicGraphHeavyNode implements GraphHeavyNode {
final List outgoings = new ArrayList<>();
final List ingoings = new ArrayList<>();
public BasicGraphHeavyNode() {
super();
}
@Override
public Iterable getOutgoings() {
return outgoings;
}
@Override
public Iterable getIngoings() {
return ingoings;
}
}