com.jeffpalm.graph.algorithms
Class IntMap

java.lang.Object
  extended by com.jeffpalm.graph.algorithms.IntMap

public final class IntMap
extends java.lang.Object


Field Summary
protected  java.util.Map map
           
 
Constructor Summary
IntMap()
           
 
Method Summary
 void addTo(Node node, int i)
           
 void dec(Node node)
           
 void divTo(Node node, int i)
           
static IntMap fill(Graph g)
           
static IntMap fill(int i, Graph g)
           
 int get(Node node)
           
 void inc(Node node)
           
 java.util.Set keySet()
           
 void mulTo(Node node, int i)
           
 boolean set(Node node, int i)
           
 void subTo(Node node, int i)
           
 java.lang.String toString()
           
 java.util.Collection values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

map

protected final java.util.Map map
Constructor Detail

IntMap

public IntMap()
Method Detail

fill

public static IntMap fill(Graph g)

fill

public static IntMap fill(int i,
                          Graph g)

inc

public void inc(Node node)

dec

public void dec(Node node)

addTo

public void addTo(Node node,
                  int i)

subTo

public void subTo(Node node,
                  int i)

mulTo

public void mulTo(Node node,
                  int i)

divTo

public void divTo(Node node,
                  int i)

set

public boolean set(Node node,
                   int i)

get

public int get(Node node)

keySet

public java.util.Set keySet()

values

public java.util.Collection values()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object