org.jgrapht.generate
Class WeightedGraphGenerator<V,E>
- java.lang.Object
-
- org.jgrapht.generate.WeightedGraphGenerator<V,E>
-
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Implemented Interfaces:
- GraphGenerator<V,E,V>
public abstract class WeightedGraphGenerator<V,E> extends java.lang.Object implements GraphGenerator<V,E,V>
A base implementation of a weighted graph generator.
-
-
Constructor Summary
Constructors Constructor and Description WeightedGraphGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description WeightedGraphGenerator<V,E>edgeClass(java.lang.Class<? extends E> edgeClass)Set the edge class of the generatorWeightedGraphGenerator<V,E>edgeFactory(EdgeFactory<V,E> edgeFactory)Set the edge factory of the generatorWeightedGraphGenerator<V,E>weights(double[][] weights)Set the weights of the generator-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jgrapht.generate.GraphGenerator
generateGraph
-
-
-
-
Method Detail
-
edgeFactory
public WeightedGraphGenerator<V,E> edgeFactory(EdgeFactory<V,E> edgeFactory)
Set the edge factory of the generator- Parameters:
edgeFactory- the edge factory- Returns:
- the generator
-
edgeClass
public WeightedGraphGenerator<V,E> edgeClass(java.lang.Class<? extends E> edgeClass)
Set the edge class of the generator- Parameters:
edgeClass- the edge class- Returns:
- the generator
-
weights
public WeightedGraphGenerator<V,E> weights(double[][] weights)
Set the weights of the generator- Parameters:
weights- of the generator- Returns:
- the generator
-
-
DataMelt 3.0 © DataMelt by jWork.ORG