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

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

public class Sample1b {

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

}
