Example usage for org.apache.commons.collections15.multimap MultiHashMap MultiHashMap

List of usage examples for org.apache.commons.collections15.multimap MultiHashMap MultiHashMap

Introduction

In this page you can find the example usage for org.apache.commons.collections15.multimap MultiHashMap MultiHashMap.

Prototype

public MultiHashMap(MultiMap<K, V> mapToCopy) 

Source Link

Document

Constructor that copies the input MultiMap creating an independent copy.

Usage

From source file:edu.umd.cs.psl.util.graph.memory.MemoryNode.java

MemoryNode(MemoryGraph g) {
    graph = g;//  w  ww.java 2  s .  c  o m
    uid = g.getUID();
    properties = new MultiHashMap<Integer, MemoryProperty>(1);
    relationships = new MultiHashMap<Integer, MemoryRelationship>(1);
}

From source file:logicProteinHypernetwork.analysis.reactions.ComplexMultigraph.java

public ComplexMultigraph(ComplexMultigraph cmg) {
    this.proteinsToVertices = new MultiHashMap<Protein, Integer>(cmg.proteinsToVertices);
    this.interactionToEdges = new MultiHashMap<Interaction, Integer>(cmg.interactionToEdges);
    this.verticesToProteins = new HashMap<Integer, Protein>(cmg.verticesToProteins);
    this.edgesToInteractions = new HashMap<Integer, Interaction>(cmg.edgesToInteractions);

    for (int v : cmg.getVertices()) {
        addVertex(v);/* w w w. j a  v a 2s. c o  m*/
    }

    for (int e : cmg.getEdges()) {
        addEdge(e, cmg.getEndpoints(e));
    }
}