// All Rights Reserved. Copyright (C) Kazuo Misue (2010)

import edu.uci.ics.jung.graph.Graph;
import edu.uci.ics.jung.graph.UndirectedSparseGraph;

public class Sample1c {

    public static void main(String[] args) {
        Graph<Integer,String> graph = new UndirectedSparseGraph<Integer,String>();
        graph.addVertex(1);
        graph.addVertex(2);
        graph.addVertex(3);
        graph.addEdge("e1", 1, 2);
        graph.addEdge("e2", 2, 3);
        System.out.println("Graph G = " + graph.toString());        
    }

}
