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

org.jgrapht.generate.WeightedGraphGenerator Maven / Gradle / Ivy

/* This program and the accompanying materials are dual-licensed under
 * either
 *
 * (a) the terms of the GNU Lesser General Public License version 2.1
 * as published by the Free Software Foundation, or (at your option) any
 * later version.
 *
 * or (per the licensee's choosing)
 *
 * (b) the terms of the Eclipse Public License v1.0 as published by
 * the Eclipse Foundation.
 */
package org.jgrapht.generate;

import org.jgrapht.*;


public abstract class WeightedGraphGenerator
    implements GraphGenerator
{
    

    protected Class edgeClass;

    protected EdgeFactory edgeFactory;

    protected double [][] weights;

    

    ///////////////////////////////////////////////////////////////////////////////////////////////

    public WeightedGraphGenerator edgeFactory(
        EdgeFactory edgeFactory)
    {
        this.edgeFactory = edgeFactory;
        return this;
    }

    public WeightedGraphGenerator edgeClass(Class edgeClass)
    {
        this.edgeClass = edgeClass;
        return this;
    }

    public WeightedGraphGenerator weights(double [][] weights)
    {
        this.weights = weights;
        return this;
    }
}

// End WeightedGraphGenerator.java




© 2015 - 2024 Weber Informatics LLC | Privacy Policy