Class EdgeListGraph

java.lang.Object
edu.cmu.tetrad.graph.EdgeListGraph
All Implemented Interfaces:
Graph, TripleClassifier, TetradSerializable, Serializable

public class EdgeListGraph extends Object implements Graph, TripleClassifier

Stores a graph a list of lists of edges adjacent to each node in the graph, with an additional list storing all of the edges in the graph. The edges are of the form N1 *-# N2. Multiple edges may be added per node pair to this graph, with the caveat that all edges of the form N1 *-# N2 will be considered equal. For example, if the edge X --> Y is added to the graph, another edge X --> Y may not be added, although an edge Y --> X may be added. Edges from nodes to themselves may also be added.> 0

Version:
$Id: $Id
Author:
josephramsey, Erin Korber additions summer 2004
See Also: