edu.neu.ccs.demeter.aplib
Class TraversalGraph.EdgeSet

java.lang.Object
  |
  +--edu.neu.ccs.demeter.aplib.Traversal.EdgeSet
        |
        +--edu.neu.ccs.demeter.aplib.TraversalGraph.EdgeSet
Enclosing class:
TraversalGraph

public class TraversalGraph.EdgeSet
extends Traversal.EdgeSet

A set of edges u^i -l-> v^j in a traversal graph, where the edges in the set are all copies of the same class graph edge u -l-> v with different endpoint indices i and j.


Method Summary
 boolean equals(Object o)
           
 Set getIntercopyIndices()
          An unmodifiable Set of IndexPair objects representing the endpoint indices of the intercopy copies in this set, i.e. the set of all (i,j) such that i !
 List getSourceIndices(int j)
          An unmodifiable list of source indices (Integer objects) corresponding to target index j.
 List getTargetIndices(int i)
          An unmodifiable list of target indices (Integer objects) corresponding to source index i.
 Traversal.NodeSet getTargetNodeSet()
          The set of target nodes of edges in this set.
 boolean hasIndices(int i, int j)
          Is u^i -l-> v^j in this set?
 
Methods inherited from class edu.neu.ccs.demeter.aplib.Traversal.EdgeSet
getEdge, sameEdge, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getIntercopyIndices

public Set getIntercopyIndices()
An unmodifiable Set of IndexPair objects representing the endpoint indices of the intercopy copies in this set, i.e. the set of all (i,j) such that i != j and u^i -l-> v^j is in the set.


hasIndices

public boolean hasIndices(int i,
                          int j)
Is u^i -l-> v^j in this set?


getTargetIndices

public List getTargetIndices(int i)
An unmodifiable list of target indices (Integer objects) corresponding to source index i.


getSourceIndices

public List getSourceIndices(int j)
An unmodifiable list of source indices (Integer objects) corresponding to target index j.


getTargetNodeSet

public Traversal.NodeSet getTargetNodeSet()
The set of target nodes of edges in this set.

Specified by:
getTargetNodeSet in class Traversal.EdgeSet

equals

public boolean equals(Object o)
Overrides:
equals in class Traversal.EdgeSet