All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cdc.graphs.impl.BasicGraphHeavyNode Maven / Gradle / Ivy

There is a newer version: 0.71.2
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy