public class MergeVertices<GraphType extends Graph<EdgeType,VertexType>,EdgeType extends GraphEdge<EdgeType,VertexType>,VertexType extends GraphVertex<VertexType>> extends Object
| Constructor and Description |
|---|
MergeVertices()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
mergeVertices(Set<VertexType> vertexSet,
GraphType g,
VertexCombinator<VertexType> combinator,
GraphToolkit<GraphType,EdgeType,VertexType> toolkit)
Merge the specified set of vertices into a single vertex.
|
public void mergeVertices(Set<VertexType> vertexSet, GraphType g, VertexCombinator<VertexType> combinator, GraphToolkit<GraphType,EdgeType,VertexType> toolkit)
vertexSet - the set of vertices to be mergedg - the graph to be modifiedcombinator - object used to combine verticestoolkit - GraphToolkit used to copy auxiliary information for edgesCopyright © 2003–2015. All rights reserved.