V
- The vertex type of graphs to merge.E
- The edge type of graphs to merge.public class MergePool<V,E> extends Object
Modifier and Type | Method and Description |
---|---|
static <V,E> MergePool<V,E> |
create()
Create a merge pool that checks node labels for equality.
|
DAGNode<V,E> |
merge(DAGNode<V,E> graph)
Merge and simplify a graph.
|
public static <V,E> MergePool<V,E> create()
V
- The node label type.E
- The edge label type.public DAGNode<V,E> merge(DAGNode<V,E> graph)
Noteo: edge labels are ignored for the purpose of merging.
graph
- The graph to simplify.Copyright © 2016 GroupLens Research. All rights reserved.