V
- the graph vertex typeE
- the graph edge typepublic class SimpleWeightedBipartiteGraphMatrixGenerator<V,E> extends WeightedGraphGeneratorAdapter<V,E,V>
weights
Constructor and Description |
---|
SimpleWeightedBipartiteGraphMatrixGenerator() |
Modifier and Type | Method and Description |
---|---|
SimpleWeightedBipartiteGraphMatrixGenerator<V,E> |
first(List<? extends V> first)
Set the first partition of the generator.
|
void |
generateGraph(WeightedGraph<V,E> target,
VertexFactory<V> vertexFactory,
Map<String,V> resultMap)
Generate a weighted graph structure.
|
SimpleWeightedBipartiteGraphMatrixGenerator<V,E> |
second(List<? extends V> second)
Set the second partition of the generator.
|
generateGraph, weights
public SimpleWeightedBipartiteGraphMatrixGenerator()
public SimpleWeightedBipartiteGraphMatrixGenerator<V,E> first(List<? extends V> first)
first
- the first partitionpublic SimpleWeightedBipartiteGraphMatrixGenerator<V,E> second(List<? extends V> second)
second
- the second partitionpublic void generateGraph(WeightedGraph<V,E> target, VertexFactory<V> vertexFactory, Map<String,V> resultMap)
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 © 2016. All rights reserved.