public static WLongGraphBuilder CreateTree(int count, PropertyConsoleReader cr) { var gb = new WLongGraphBuilder(count, false); for (var i = 1; i < count; i++) { gb.Add(cr.Int0, cr.Int0, cr.Long); } return(gb); }
public static WLongGraphBuilder Create(int count, PropertyConsoleReader cr, int edgeCount, bool isDirected) { var gb = new WLongGraphBuilder(count, isDirected); for (var i = 0; i < edgeCount; i++) { gb.Add(cr.Int0, cr.Int0, cr.Long); } return(gb); }