Beispiel #1
0
 public Graph(int vertices, IGraphTraversal <T> traversalStratgy)
 {
     _TraversalStratgy = traversalStratgy;
     this.NoOfVertices = vertices;
     Matrix            = new LinkedList <T> [NoOfVertices];
     for (int i = 0; i < Matrix.Length; i++)
     {
         Matrix[i] = new LinkedList <T>();
     }
 }
Beispiel #2
0
        public GraphologistComponents(IGraphTraversal graphTraversal, IGraphVisualization graphVisualization)
        {
            if (graphTraversal == null)
            {
                throw new ArgumentNullException("graphTraversal");
            }
            if (graphVisualization == null)
            {
                throw new ArgumentNullException("graphVisualization");
            }

            this._graphTraversal     = graphTraversal;
            this._graphVisualization = graphVisualization;
        }
Beispiel #3
0
        public Graphologist(IGraphTraversal traversal, IGraphVisualization visualization)
        {
            if (traversal == null)
            {
                throw new ArgumentNullException("traversal");
            }
            if (visualization == null)
            {
                throw new ArgumentNullException("visualization");
            }

            this._traversal     = traversal;
            this._visualization = visualization;
        }
Beispiel #4
0
        public GraphologistComponents(IGraphTraversal graphTraversal, IGraphVisualization graphVisualization)
        {
            if (graphTraversal == null) throw new ArgumentNullException("graphTraversal");
            if (graphVisualization == null) throw new ArgumentNullException("graphVisualization");

            this._graphTraversal = graphTraversal;
            this._graphVisualization = graphVisualization;
        }
Beispiel #5
0
        public Graphologist(IGraphTraversal traversal, IGraphVisualization visualization)
        {
            if (traversal == null) throw new ArgumentNullException("traversal");
            if (visualization == null) throw new ArgumentNullException("visualization");

            this._traversal = traversal;
            this._visualization = visualization;
        }
 public MatrixColorator(IGraphTraversal t)
 {
     traversal = t;
 }