src/com/michaelho/DataObjects/Graph.java
// Adds an edge to an undirected graph
Adds an edge to an undirected graph
Adds an edge to an undirected graph
public void addEdge(int src, int dest, int weight) {
        Edge edge = new Edge(src, dest);
        edge.weight = weight;
        this.edges.add(edge);
    }
public void addEdge ( int src , int dest , int weight ) { Edge edge = new Edge ( src , dest ) ; edge . weight = weight ; this . edges . add ( edge ) ; }
Adds an edge to an undirected graph
Adds an edge to an undirected graph