Exemple #1
0
        public BidirectionalMatrixGraph <Edge <int> > SelfEdge()
        {
            BidirectionalMatrixGraph <Edge <int> > g = new BidirectionalMatrixGraph <Edge <int> >(10);

            g.AddEdge(new Edge <int>(1, 1));
            return(g);
        }
Exemple #2
0
        public BidirectionalMatrixGraph <Edge <int> > TwoConnectedEdges()
        {
            BidirectionalMatrixGraph <Edge <int> > g = new BidirectionalMatrixGraph <Edge <int> >(10);

            g.AddEdge(new Edge <int>(0, 1));
            g.AddEdge(new Edge <int>(1, 2));
            return(g);
        }
Exemple #3
0
        public BidirectionalMatrixGraph <Edge <int> > TwoDisjointEdges()
        {
            BidirectionalMatrixGraph <Edge <int> > g = new BidirectionalMatrixGraph <Edge <int> >(10);

            g.AddEdge(new Edge <int>(0, 1));
            g.AddEdge(new Edge <int>(5, 6));
            return(g);
        }