V - the graph vertex typeE - the graph edge typepublic class SimpleWeightedGraphMatrixGenerator<V,E> extends WeightedGraphGeneratorAdapter<V,E,V>
| Modifier and Type | Field and Description | 
|---|---|
protected List<V> | 
vertices  | 
weights| Constructor and Description | 
|---|
SimpleWeightedGraphMatrixGenerator()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
generateGraph(WeightedGraph<V,E> target,
             VertexFactory<V> vertexFactory,
             Map<String,V> resultMap)
Generate a weighted graph structure. 
 | 
SimpleWeightedGraphMatrixGenerator<V,E> | 
vertices(List<V> vertices)
Set the generator vertices. 
 | 
generateGraph, weightspublic SimpleWeightedGraphMatrixGenerator<V,E> vertices(List<V> vertices)
vertices - the graph verticespublic void generateGraph(WeightedGraph<V,E> target, VertexFactory<V> vertexFactory, Map<String,V> resultMap)
WeightedGraphGeneratorAdaptergenerateGraph 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.