public UndirectedGraph(java.util.HashSet<T> nodes,
com.google.common.collect.ImmutableSetMultimap<T,T> adj,
java.util.HashMap<net.maizegenetics.util.Tuple,java.lang.Double> wts)
Constructs an undirected graph
nodes - Set of nodesadj - Multimap of adjacency between nodeswts - Hashmap of an edge (represented by a Map Entry) and weightspublic java.util.Iterator<T> nodesIter()
public java.util.Collection<T> nodes()
public int numberOfNodes()
public boolean hasNode(T n)
public boolean hasEdge(T u,
T v)
public java.util.Collection<T> neighbors(T n)
public java.util.Collection<java.util.Map.Entry> edges()
public java.util.Iterator<java.util.Map.Entry> edgesIter()
public int degree(T n)
public int size()
public double size(boolean weighted)