Ejemplo n.º 1
0
 /// <summary>
 /// This constructor allow to configure the whole parameters of the graphBuilder
 /// </summary>
 /// <param name="typo_p"></param>
 /// <param name="vtxNbr_p"></param>
 /// <param name="density_p"></param>
 /// <param name="backreturn_p"></param>
 public GB_Core(graphTypology typo_p, int vtxNbr_p, float density_p, float backreturn_p)
 {
     this.gTypo = typo_p;
     this.vtxNbr = vtxNbr_p;
     this.density = density_p;
     this.backReturn = backreturn_p;
     this.vtxTab = new List<Vertex>();
     this.adjMatx = new AdjMtx(this.vtxNbr);
 }
Ejemplo n.º 2
0
        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);
        }