edu.neu.ccs.demeter.aplib
Interface StrategyGraphI

All Known Implementing Classes:
StrategyGraph

public interface StrategyGraphI

A directed graph whose nodes are unique Objects and whose edges are unlabeled but ordered.


Method Summary
 Object getEdgeSource(int i)
          The source node of edge number i.
 Object getEdgeTarget(int i)
          The target node of edge number i.
 Collection getIncomingEdges(Object v)
          A Collection of indices (Integer objects) of edges coming into node v.
 Collection getNodes()
          A Collection of nodes in the strategy graph.
 Collection getOutgoingEdges(Object v)
          A Collection of indices (Integer objects) of edges going out of node v.
 int numEdges()
          The number of edges in the strategy graph.
 

Method Detail

getNodes

public Collection getNodes()
A Collection of nodes in the strategy graph.


getOutgoingEdges

public Collection getOutgoingEdges(Object v)
A Collection of indices (Integer objects) of edges going out of node v. Return an empty list if there are no outgoing edges, null if there is no such node.


getIncomingEdges

public Collection getIncomingEdges(Object v)
A Collection of indices (Integer objects) of edges coming into node v. Return an empty list if there are no incoming edges, null if there is no such node.


numEdges

public int numEdges()
The number of edges in the strategy graph.


getEdgeSource

public Object getEdgeSource(int i)
The source node of edge number i.


getEdgeTarget

public Object getEdgeTarget(int i)
The target node of edge number i.