simple graph generator (from JUNG)