Package | Description |
---|---|
lib.easyjava.graph.directed | |
lib.easyjava.graph.undirected | |
lib.easyjava.type |
Constructor and Description |
---|
UnweightedDirectedGraph(MultiMap<T,T> connections)
Creates a new unweighted directed graph with the connections described by
a multimap.
|
WeightedDirectedGraph(MultiMap<T,Pair<T,java.lang.Double>> connections)
Creates a new weighted undirected graph with the connections described by
a multimap.
|
Constructor and Description |
---|
UnweightedUndirectedGraph(MultiMap<T,T> connections)
Creates a new unweighted undirected graph with the connections described
by a multimap.
|
WeightedUndirectedGraph(MultiMap<T,Pair<T,java.lang.Double>> connections)
Creates a new weighted undirected graph with the connections described by
a multimap.
|
Modifier and Type | Class and Description |
---|---|
class |
ListMultiMap<K,V>
A multimap back by a list, allowing duplicate values under the same key
|
class |
SetMultiMap<K,V>
A multimap back by a set, disallowing duplicate values under the same key
|
Modifier and Type | Method and Description |
---|---|
void |
SetMultiMap.putAll(MultiMap<? extends K,? extends V> map) |
void |
MultiMap.putAll(MultiMap<? extends K,? extends V> map)
Copies all of the mappings from the specified multimap to this map
(optional operation).
|
void |
ListMultiMap.putAll(MultiMap<? extends K,? extends V> map) |