V - the graph vertex typeE - the graph edge typepublic class SimpleWeightedGraphMatrixGenerator<V,E> extends WeightedGraphGeneratorAdapter<V,E,V> implements GraphGenerator<V,E,V>
| Modifier and Type | Field and Description | 
|---|---|
protected List<V> | 
vertices  | 
protected double[][] | 
weights  | 
| Constructor and Description | 
|---|
SimpleWeightedGraphMatrixGenerator()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
generateGraph(Graph<V,E> target,
             VertexFactory<V> vertexFactory,
             Map<String,V> resultMap)
Generate a graph structure. 
 | 
void | 
generateGraph(WeightedGraph<V,E> target,
             VertexFactory<V> vertexFactory,
             Map<String,V> resultMap)
Deprecated. 
 
Not needed since  
WeightedGraph is deprecated. | 
SimpleWeightedGraphMatrixGenerator<V,E> | 
vertices(List<V> vertices)
Set the generator vertices. 
 | 
SimpleWeightedGraphMatrixGenerator<V,E> | 
weights(double[][] weights)
Set the weights of the generator. 
 | 
public SimpleWeightedGraphMatrixGenerator<V,E> vertices(List<V> vertices)
vertices - the graph verticespublic SimpleWeightedGraphMatrixGenerator<V,E> weights(double[][] weights)
weights in class WeightedGraphGeneratorAdapter<V,E,V>weights - the weightspublic void generateGraph(Graph<V,E> target, VertexFactory<V> vertexFactory, Map<String,V> resultMap)
WeightedGraphGeneratorAdaptergenerateGraph in interface GraphGenerator<V,E,V>generateGraph in class WeightedGraphGeneratorAdapter<V,E,V>target - receives the generated edges and vertices; if this is non-empty on entry, the
        result will be a disconnected graph since generated elements will not be connected to
        existing elementsvertexFactory - called to produce new verticesresultMap - if non-null, receives implementation-specific mappings from String roles to
        graph elements (or collections of graph elements)@Deprecated public void generateGraph(WeightedGraph<V,E> target, VertexFactory<V> vertexFactory, Map<String,V> resultMap)
WeightedGraph is deprecated.generateGraph in class WeightedGraphGeneratorAdapter<V,E,V>target - receives the generated edges and vertices; if this is non-empty on entry, the
        result will be a disconnected graph since generated elements will not be connected to
        existing elementsvertexFactory - called to produce new verticesresultMap - if non-null, receives implementation-specific mappings from String roles to
        graph elements (or collections of graph elements)Copyright © 2017. All rights reserved.