@Test public void testBA() { UTGraph<String, String> graph = RandomGraphs.preferentialAttachment(30, 2); System.out.println(graph); System.out.println(Graphs.shuffle(graph)); }
public static UTGraph<String, String> preferentialAttachment(int nodes, int toAttach) { BAGenerator bag = new BAGenerator(BA_INITIAL, toAttach); bag.iterate((nodes - BA_INITIAL)); return bag.graph(); }
RandomGraphs { public static UTGraph<String, String> preferentialAttachment(int nodes, int toAttach) { BAGenerator bag = new BAGenerator(BA_INITIAL, toAttach); bag.iterate((nodes - BA_INITIAL)); return bag.graph(); } }
RandomGraphs { public static UTGraph<String, String> preferentialAttachment(int nodes, int toAttach) { BAGenerator bag = new BAGenerator(BA_INITIAL, toAttach); bag.iterate((nodes - BA_INITIAL)); return bag.graph(); }  }
RandomGraphs { public static UTGraph<String, String> preferentialAttachment(int nodes, int toAttach) { BAGenerator bag = new BAGenerator(BA_INITIAL, toAttach); bag.iterate((nodes - BA_INITIAL)); return bag.graph(); }  static UTGraph<String, String> preferentialAttachment(int nodes, int toAttach); static DTGraph<String, String> preferentialAttachmentDirected(int nodes, int toAttach); static UTGraph<String, String> random(int n, double prob); static UTGraph<String, String> random(int n, int m); static UGraph<String> randomFast(int n, int m); static DGraph<String> randomDirectedFast(int n, int m); static DTGraph<String, String> randomDirected(int n, double prob); static UTGraph<String, String> fractal(
			int depth, int offspring, int interLinks, double hubProb); static Pair<Integer, Integer> toPairUndirected(long index, boolean self); }
RandomGraphs { public static UTGraph<String, String> preferentialAttachment(int nodes, int toAttach) { BAGenerator bag = new BAGenerator(BA_INITIAL, toAttach); bag.iterate((nodes - BA_INITIAL)); return bag.graph(); }  static UTGraph<String, String> preferentialAttachment(int nodes, int toAttach); static DTGraph<String, String> preferentialAttachmentDirected(int nodes, int toAttach); static UTGraph<String, String> random(int n, double prob); static UTGraph<String, String> random(int n, int m); static UGraph<String> randomFast(int n, int m); static DGraph<String> randomDirectedFast(int n, int m); static DTGraph<String, String> randomDirected(int n, double prob); static UTGraph<String, String> fractal(
			int depth, int offspring, int interLinks, double hubProb); static Pair<Integer, Integer> toPairUndirected(long index, boolean self); static final int BA_INITIAL; }