V - the graph vertex typeE - the graph edge typepublic abstract class WeightedGraphGenerator<V,E> extends Object implements GraphGenerator<V,E,V>
| Modifier and Type | Field and Description |
|---|---|
protected Class<? extends E> |
edgeClass |
protected EdgeFactory<V,E> |
edgeFactory |
protected double[][] |
weights |
| Constructor and Description |
|---|
WeightedGraphGenerator() |
| Modifier and Type | Method and Description |
|---|---|
WeightedGraphGenerator<V,E> |
edgeClass(Class<? extends E> edgeClass)
Set the edge class of the generator
|
WeightedGraphGenerator<V,E> |
edgeFactory(EdgeFactory<V,E> edgeFactory)
Set the edge factory of the generator
|
WeightedGraphGenerator<V,E> |
weights(double[][] weights)
Set the weights of the generator
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerateGraphprotected EdgeFactory<V,E> edgeFactory
protected double[][] weights
public WeightedGraphGenerator<V,E> edgeFactory(EdgeFactory<V,E> edgeFactory)
edgeFactory - the edge factorypublic WeightedGraphGenerator<V,E> edgeClass(Class<? extends E> edgeClass)
edgeClass - the edge classpublic WeightedGraphGenerator<V,E> weights(double[][] weights)
weights - of the generatorCopyright © 2016. All rights reserved.