AnalyzerUnitTest.FanMotifDetectorTest.TestCalculateFanMotifs2 C# (CSharp) Method

TestCalculateFanMotifs2() private method

private TestCalculateFanMotifs2 ( ) : void
return void
        public void TestCalculateFanMotifs2()
        {
            // Simple fan motifs.

            IVertex oVertexA = m_oVertices.Add();
            IVertex oVertexB = m_oVertices.Add();
            IVertex oVertexC = m_oVertices.Add();
            IVertex oVertexD = m_oVertices.Add();
            IVertex oVertexE = m_oVertices.Add();
            IVertex oVertexF = m_oVertices.Add();
            IVertex oVertexG = m_oVertices.Add();
            IVertex oVertexH = m_oVertices.Add();
            IVertex oVertexI = m_oVertices.Add();
            IVertex oVertexJ = m_oVertices.Add();

            // Not a fan.

            m_oEdges.Add(oVertexA, oVertexB);

            // Fan.

            m_oEdges.Add(oVertexC, oVertexD);
            m_oEdges.Add(oVertexC, oVertexE);
            m_oEdges.Add(oVertexC, oVertexF);
            m_oEdges.Add(oVertexF, oVertexG);

            // Fan.  Note the connector edges in this one.

            m_oEdges.Add(oVertexH, oVertexI);
            m_oEdges.Add(oVertexH, oVertexI);
            m_oEdges.Add(oVertexI, oVertexH);
            m_oEdges.Add(oVertexH, oVertexJ);

            ICollection<Motif> oMotifs;

            Assert.IsTrue(m_oFanMotifCalculator.TryCalculateFanMotif(
                m_oGraph, null, out oMotifs));

            //Assert.AreEqual(2, oMotifs.Count);

            
        /*foreach (Motif oMotif in oMotifs)
            {
                Assert.IsTrue(oMotif is FanMotif);
            }
         * */
        /*
            VerifyFanMotif(oMotifs, oVertexC, 0.5, oVertexD, oVertexE);
            VerifyFanMotif(oMotifs, oVertexH, 0.5, oVertexI, oVertexJ);
         * */
        }