/// <summary> /// This constructor allow to configure graphBuilder, based on directed graph architecture /// </summary> /// <param name="vtxNbr_p"></param> /// <param name="density_p"></param> /// <param name="backreturn_p"></param> public GB_Core(int vtxNbr_p, float density_p, float backreturn_p) { this.vtxNbr = vtxNbr_p; this.density = density_p; this.backReturn = backreturn_p; this.vtxTab = new List<Vertex>(); this.adjMatx = new AdjMtx(this.vtxNbr); }
private AdjMtx adjMatx; //Graph adjency matrix /// <summary> /// Default constructor generate a directed graph, /// with 10 edges & a density of 1 /// </summary> public GB_Core() { this.gTypo = graphTypology.DIRECTED; this.vtxNbr = 10; this.density = 1.0f; this.backReturn = 0.0f; this.vtxTab = new List<Vertex>(); this.adjMatx = new AdjMtx(this.vtxNbr); }